So I'm guessing this is because of a setting I have enabled on my computer preventing it from running. But like I said as a work around, I can just run the editor.psi file without the starting parameters and add them manually once in game.
This is a rather hacky workaround you have, no wonder it doesn't work well
As for the error you got - default Windows security settings disallow running random PowerShell scripts. You can fix this in two ways:
1. Allow PowerShell scripts to run for a session. Type this before running any scripts:
Code: Select all
Set-ExecutionPolicy Bypass -Scope Process
2. Permanently allow PowerShell scripts for all future sessions. For that start PowerShell prompt as administrator
and type this:
After you do either of those 2 options, you should be fine! Just make sure you return editor.ps1
to the original form.
Thanks for revealing the problem! This info about Windows security settings will definitely go into the manual!
There's a reason it wasn't documented to begin with - when I was testing on my machines, I forgot my Windows computer had already security settings lifted. And on Linux version of PowerShell, security measures are disabled by default.