This is a very handy little tool. It's a simple process killer. Works pretty well whenever you got a program/process going and the Task Manager won't close it no matter what. This closes it. :)

http://www.xeonstudio.com/files/pskill.exe

You ought to credit the guys who actually create/own this utility, see
http://www.sysinternals.com/ - the filemon / regmon people.

It is part of a complete suite of command line for doing tricky things between machines.

BEWARE: some virus scanners are now programmer to remove pskill.exe if they find it. So scripting it into you app can be troublesome.