$proc->Kill(exitcode)
proc
exitcode
Kills the process with the given exitcode, which is returned by the process.