Building with Parameter Sets
Let’s continue building a PowerShell function and explore a topic that might be new to you, parameter sets. We use parameter sets all the time in PowerShell. Look at help for a command like Get-Service
.
Under Syntax, there are three ways to use the command. Each collection of parameters is referred to as a parameter set.
Another way to view parameter sets is to use Show-Command
.
Want to read the full issue?