To compliment gms0ulman's answer ...
PowerShell displays objects in the console based on format.ps1xml files. From File Formatting Overview
, (, ), ( format.ps1xml). Windows PowerShell , Windows PowerShell...
PowerShell, , , . PowerShellCore.format.ps1xml. $MyInvocation.MyCommand
, System.Management.Automation.ScriptInfo
. , .
<View>
<Name>System.Management.Automation.ScriptInfo</Name>
<ViewSelectedBy>
<TypeName>System.Management.Automation.ScriptInfo</TypeName>
</ViewSelectedBy>
<ListControl>
<ListEntries>
<ListEntry>
<ListItems>
<ListItem>
<PropertyName>Name</PropertyName>
</ListItem>
<ListItem>
<PropertyName>CommandType</PropertyName>
</ListItem>
<ListItem>
<PropertyName>Definition</PropertyName>
</ListItem>
<ListItem>
<PropertyName>Path</PropertyName>
</ListItem>
</ListItems>
</ListEntry>
</ListEntries>
</ListControl>
</View>
, , Name, CommandType, Definition Path. , * 1
, , , - , .
1 , *. -Force
, . , .