Newbie Question.
How do I declare nested parameters for a Powershell cmdlet? I want a cmdlet that would look something like this.
New-FootballTeam
[-Defenders [[-LeftBack] <string>] [[-RightBack] <string>] ]
[-Midfielders [[-LeftWing] <string>] [[-RightWing] <string>] [[-CentreMidfield] <string>] ]
I tried using the ParameterSetName parameter to club the parameters under Defenders and Midfielders together. But when I do a help New-FootballTeam the Defenders and Midfielders tags don't show up and I see something like this.
New-FootballTeam
[[-LeftBack] <string>] [[-RightBack] <string>]
[[-LeftWing] <string>] [[-RightWing] <string>] [[-CentreMidfield] <string>]
Thanks, in advance.
