Not sure the right track, no. I'd declare a Param() block and lay out your parameters, optional and mandatory. It's much more in keeping with native patterns. "Learn PowerShell Scripting in a Month of Lunches" covers this in detail if you have access to a copy, but happy to try and answer questions here too.
The topic ‘Multiple $arg’ is closed to new replies.