I want to kill process "example.exe" one by one or two at a time to eventually get 0 "example.exe" processes and loop check if there's any "example.exe" processes every minute , if there is - terminate them/it. Right now I'm using this
If you are trying to kill processes with the same name, you'll need to use the PID number as that should be unique.
"Use tasklist to determine the Process ID (PID) for the process to be terminated. "
tasklist /fi "Imagename eq WerFault.exe" will give you the PID for those processes and you can parse that into a command to kill them by PID.