I can find how [Switch] parameters are defined and used in a function, but couldn’t find how to do it on the script level.
E.g. how would Recurse be handled in “dir -Recurse” if dir were written in PowerShell?
Thanks, Vilmos
↧
[Switch] parameter on script level
↧