Gracefully handle Parameter Set violations
<p>I am transitioning from an "old" group of parameters to a "new" group, and in the transition I want to provide meaningful logging. I have started looking at Parameter Sets, but I am not seeing a way to handle violations gracefully when the parameters are passed from a shortcut to a script. I don't want to have PS fail, I want to trap the condition, but so far as I can tell you can't wrap the Param() section in a try/catch and handle it separately. Is there some way to handle this that I am missing?</p>