|How are you trying to kill the task? I've used pskill before, and while it's nice, you could just use the built-in program, TASKKILL.|
Just run it like this to use the program name:
TASKKILL /F /IM "notepad.exe"
Or this to kill it based on the process ID:
TASKKILL /F /PID 1234
Does that work?