Goose fails to run powershell commands!
Steps to reproduce the bug:
- Open Goose desktop on your Windows computer.
- Ask it to do some scripting such as list all the files in the current directory.
- Tada you have the error

Trouble-shooting
I let Goose self-diagnose this situation and it turns out that those PowerShell profile parameters are being incorrectly included in the script content instead of being passed as separate arguments. This causes all commands to fail with a "-NoProfile is not recognized as a cmdlet" error.


Therefore instead of this: powershell -NoProfile -NonInteractive -Command "dir", we are getting this: powershell "-NoProfile -NonInteractive -Command { dir }", those params are treated as command strings so PowerShell fails to execute the dir command properly.
PS
I think this code right here is causing the problem:

Maybe the params are not set up properly?