Find Every Parameter for Every Command in a PowerShell Module
We're currently working on standardizing our documentation for dbatools and I needed a list of all of the parameters we use. Here's how I did it (well, I did it an uglier way then Aaron made it prettier ;))
1Get-Command -Module dbatools -CommandType Function |
2ForEach-Object { $_.Parameters.Values.Name } |
3Sort -Unique