$ParentProcessID

WMA link


$ParentProcesID

gives the ID assigned to the process which invokes Mathics3 by the operating system under which it is run.

$Packages
$ProcessID