I have a .bat file that executes taskkill /FI "STATUS eq RUNNING" /F At a certain point, however, it also kills the batch file itself, meaning that it
taskkill /FI "STATUS eq RUNNING" /F