System.Management.Automation.CommandTypes enum. PS C:\> function dummy() { write-output 42 }
PS C:\> $function:dummy.GetType().FullName
System.Management.Automation.ScriptBlock
[cmdletBinding[()] param() to its declaration. Such a function is said to be advanced: function do-something {
[cmdletBinding()]
param (
…
)
…
}
get-content cmdlet: PS C:\> get-content function:/mkdir
System.Management.Automation.FunctionInfo and .NET class System.Management.Automation.CmdletBindingAttribute. PS C:\Users\Rene> test-path function:\mkdir True
new-item.