分为三个步骤,只需要不断重复组合即可
get-help|get-member get-command([command]).<method>常用类型分为:Alias、Cmdlet、Function、Application、Script…..(共9个,详见下方超链)
| Alias | 1 | Aliases create a name that refers to other command types |
|---|---|---|
| All | 511 | All possible command types. |
| Application | 32 | Any existing application (can be console or GUI). |
| Cmdlet | 8 | A cmdlet. |
| Configuration | 256 | A Configuration |
| ExternalScript | 16 | An MSH script (*.ps1 file) |
| Filter | 4 | Script filters that are defined by a script block. |
| Function | 2 | Script functions that are defined by a script block |
| Script | 64 | A script that is built into the runspace configuration |
get-command <command>
# 例子
❯❯ pwsh-demo 01:01 Get-Command vim
# 输出
CommandType Name Version Source
----------- ---- ------- ------
Application vim.exe 0.0.0.0 D:\\.data\\Scoop\\shims\\vim.exe