How do I launch an exe via exec (ssh'd into my windows pc) with parameters?

I can successfully ssh into my pc via node-red and now I want to launch a program with parameters, but it always returns on error and the program doesn't launch. the payload that is sent to the exec contains the program info with the params and the exec node is set to the command ssh user@192.168.1.xx

I'm not entirely sure I used the proper escape strings. pwsh.exe is in my system and user paths, but i believe it breaks on the --slot part. If I manually ssh into my pc from the node red VM (proxmox) and run:
& "C:\PROGRA~1\reWASD\REWASD~1.EXE" select_slot "--id" "314856674055983265;4459543588222" "--slot" "slot3"

it works, however via the exec it does not.

the function node prior to it is like so:

msg.payload = '"C:\\Program Files\\PowerShell\\7\\pwsh.exe" -Command "& \\"C:\\PROGRA~1\\reWASD\\REWASD~1.EXE\\" select_slot --id \\"314856674055983265;4459543588222\\" --slot \\"slot3\\""'; return msg;

Welcome to the forum @mxp83

Get it working first using a command window on the PC running node red. Then replicate the command you run in the exec node. If it won't work then show us the command you are entering in the command window that does work.