I googled for "A Positional Parameter Cannot Be Found That Accepts Argument Powershell" and there are tons of tips.
Here is one:
When you wrap this script in an executable file and use the same command line, it used to fail, because all input strings were interpreted as parameter values. In this case, ‘-Parameter’ was interpreted as the value of the Word parameter and ‘PowerShell’ was interpreted as the value of the Number parameter. The script failed when Windows PowerShell couldn’t convert ‘PowerShell’ to a integer."
https://www.sapien.com/blog/2015/11/...ecutable-file/
Perhaps this is similar to your issue?
Friedrich