Shell.PID

From Xojo Documentation

Property (As Integer )
aShell.PID = newIntegerValue
or
IntegerValue = aShell.PID

Supported for all project types and targets.

The ID of the interactive shell process.