I have a script and I each change I version it in the filename (as we may have one or more versions in-play at any one time). e.g. “myscript v1.ps1” “myscript v2.ps1” etc However I want another script “myscript” that I can tell everyone to call if they just want to call the latest tested and complete version.
These scripts have a load of parameters defined (which may change over time) and ideally I would just like this “myscript” to pass through all and any parameters straight through so that I can set it up and forget about it.
I’ve tried splatting with @psBoundParameters but I think I need to define the params to make that work in a script which is going to add additional maintenance overhead.
Is what I’m after possible at all in PS and if not what would be the best compromise?
Thanks for any insights!