InvocationInfo.ScriptName Property   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The name of the script containing the cmdlet.
public:
 property System::String ^ ScriptName { System::String ^ get(); };
	public:
 property Platform::String ^ ScriptName { Platform::String ^ get(); };
	public string ScriptName { get; }
	member this.ScriptName : string
	Public ReadOnly Property ScriptName As String
	Property Value
The script name or "" if there was no script.