$executionContext
is System.Management.Automation.EngineIntrinsics
. Such an object represents the execution context of the PowerShell host. $executionContext.SessionState.Path.CurrentLocation
has the same value like $pwd
, but is read-only, while $pwd
is writable. $psCmdLet