I have several processes running which have the same name. I want to have an option to kill them from a batch script. I need something very similar to unix shell command:
You can use taskkill.
taskkill
taskkill /im MY_PROCESS_NAME /f
That will kill all processes under the name you specify i.e. iexplore.exe
iexplore.exe
Type taskkill /? at a cmd prompt for all the options.
taskkill /?