I have this script that can be called in two ways:
MyScript -foo path\\to\\folder
or
MyScript -bar path\\to\\folder
As explained here you can specify the parameter position of your parameter.
[parameter(Position=0)]