What is Get-Command -CommandType Script? What kind of commands does it cover? Help about Script tells “– Script: Script blocks in the current session.” but I am not sure what kind of script blocks it means. Are there cases when Get-Command -CommandType Script actually returns anything?
What is Get-Command -CommandType Script ? What kind of commands does it cover? Help
Share
The get-command commandtype parameter reuses an enum that is used elsewhere in powershell. In other places where it’s used (for example, in the parser), it will make sense to be of type Script. But in this case, for get-command, Script is not a value that is actually relevant for command types.
-Oisin