A simpler solution is just to limit the returned processes to those started by this session.

The following code does that. I've not tried it on a farm member server console but it should work there too as it works OK on a stand-alone machine.

Code:
If InStr(%SESSIONNAME%,"#") $sSession=Split(%SESSIONNAME%,'#')[1] EndIf

If Not CInt($sSession) $sSession=0 EndIf

$strComputer = "."
$colProcesses = GetObject("winmgmts:"
+ "{impersonationLevel=impersonate}!\\"
+ $strComputer
+ "\root\cimv2").ExecQuery("Select * from Win32_Process Where SessionID='"+$sSession+"'")

For Each $objProcess in $colProcesses
$objProcess.SessionId ": " $objProcess.Name ?
Next