How can you run a batch file which taskkills all other cmd.exes which are currently running, except for the one that is doing the task kill command?
copy cmd.exe, rename it to a.exe, then use this command in a batch file: start a.exe /k taskkill /f /im cmd.exe