How can I pass an argument to a PowerShell script?
Tested as working: Call it with Multiple parameters syntax (comments are optional, but allowed): And some example for advanced parameters, e.g. Mandatory: A default value will not work with a mandatory parameter. You can omit the =$true for advanced parameters of type boolean [Parameter(Mandatory)].