PowerShell Automatic Variables $pid


Example

Contains process ID of the current hosting process.

PS C:\> $pid
26080