InvocationInfoWrapper.PSCommandPath property

Gets the path of the PowerShell command being executed.

public string PSCommandPath { get; }

See Also