Hi @Stef_99
Can you try like below
currentProcess.ProcessName.ToLower().Contains("chrome") Or currentProcess.ProcessName.ToLower().Contains("excel")
or You can directly give like below if the process is opened then it will close
Check this
Regards,