...though it might be easier to use the Wscript.Shell Exec method instead of KiXtart's built-in SHELL or RUN as this should provide you with the ProcessID as a property.

Here is a very simple example:
 Code:
$sCMD="notepad.exe"
$oExec = CreateObject("WScript.Shell").Exec($sCMD) 
"Process ID for '"+$sCMD+"' is "+$oExec.ProcessID+@CRLF


Edited by Richard H. (2010-03-08 04:43 PM)
Edit Reason: Added example