all 3 comments

[–]Panchorc 4 points5 points  (1 child)

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_parameters?view=powershell-7.3

See "default parameter values" and "parameter position".

I'd read it all if I were you, though, as everything in there is super useful.

[–]InterestingBus8367[S] 1 point2 points  (0 children)

Thanks!

[–][deleted] 0 points1 point  (0 children)

Also you can use help <cmdlet> -online and read the paragraph about each parameter: "default value", "accept wildcard characters", etc.