IAmRunningInJobProcessor

The IAmRunningInJobProcessor object is of type bool and tells whether the current script gets executed in JobProcessor or not.

Syntax

1
$IAmRunningInJobProcessor

Remarks

The $IAmRunningInJobProcessor flag returns only $true when the Job is executed in the JobProcessor.
When running the script in a PowerShell IDE the variable returns $false.