|Think about Loose Coupling|
Answer: How do i kill a process on a remote win32 machine
Strange by my reply disappeared.
Here it is again...
Sorry, usually when I get a process question, they mean service....
Take a look at Win32::Process
You will have a functionWin32::Process::KillProcess($pid, $exitcode)
Terminates any process identified by $pid. $exitcode will be set to the exit code of the process.