Is it possible to create a script which would in turn end a specific process?
I need to end the chromedriver.exe (Even if more than one process running):
You can do this using TaskKill
taskkill /F /IM processname.exe /T
For conditional operation, you can use powershell;
if(Get-Process -Name ProcessName)
{
"Process is running. So ending the process"
Get-Process -Name ProcessName | Stop-Process -Force
}
Else
{
"Process is not running"
}