Parameter Sets
This has come up a couple of times and I’ve always managed to work around it, but there will come a time when you want to create an advanced function or script. One with many parameters, and some of those parameters will be mutually exclusive. You can do this using the ParameterSetName argument, inside the Parameter decorator. Here’s how!