Sounds like there are some better solutions already offered, but I've used a public domain program called "CleanUp.exe" which can do this and quite a bit more. The syntax for forcing a running EXE closed is: cleanup.exe -kill "MyProgram.exe".
I originally downloaded the program from Thraex Softwares site.
www.thraexsoftware.com.
-m@