Get the Command and its definition When you pipe Get-Module with this cmdlet, it return the module name, commands and definitions
C:\PS> Get-Module Get-TCBuildType | Get-DWCommand
Get the dependencies for a given DWCommand It is hard to get cmdlet dependencies in order to refactor powershell cmdlet. With this you can analyse impact this cmdlet return the module name, command name and dependencies
Get-module teamcity | Get-DWCommand | Get-DWDependencies
- Get the command of the module to refactor for example Teamcity Module
$teamcity = Get-module teamcity | Get-DWCommand | % Command
- Get the dependencies for all installed modules
Get-module | Get-DWCommand | Get-DWDependencies | ? { $teamcity -contains $_.Dependency }