What is Get-Command -CommandType Script
? What kind of comma开发者_Python百科nds 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?
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
精彩评论