![Powershell Core 6.2 Cookbook](https://wfqqreader-1252317822.image.myqcloud.com/cover/704/36698704/b_36698704.jpg)
上QQ阅读APP看书,第一时间看更新
There's more...
Even if you're an advanced PowerShell user, Get-Command can help you. Just have a look at the amount of data you can access for each command by using Format-List. We'll later learn about Get-Member as well:
# Discover more about a cmdlet with Format-List
Get-Command New-Item | Format-List -Property *
# Examine additional properties that might be helpful
$cmd = Get-Command New-Item
# Where does the cmdlet's help content come from?
$cmd.HelpUri
# Quickly jump to the location of a cmdlet's module
Set-Location -Path $cmd.Module.ModuleBase
# How many parameters does a cmdlet have including the common parameters?
$cmd.Parameters.Count
# Discovering the data of a parameter, in this case realizing that
# New-Item allows empty strings or $null to be passed to the Name parameter
$cmd.Parameters.Name
Look at the following screenshot of how the output looks:
![](https://epubservercos.yuewen.com/57DF63/19470379901495806/epubprivate/OEBPS/Images/9c350dcb-931c-4683-8e5b-621156dcb4d9.png?sign=1739292914-mLCALaR3aSWFHM5lCENF4G9KwZs8GUwR-0-3720c592a406435a37aea94e23357c5a)