in reply to Killing an Application in Windows NT

Look at Win32::PerfLib for retrieving the task list, with this information you'll get the pid and pname, you could then do a system("kill $pid") to kill the rogue process. Check out cpan.org for the perl module to do this.