Using Execute with Powershell?
Posted: Wed Jun 05, 2013 1:00 am
Okay, so I've been trying to use Powershell with the Execute plugin, because it's my main scripting language. I could just use Python, but at this point it's mostly stubbornness. No matter what I try though I can't get it to work. If I try just the script path I get this error:
Then, if I try to call powershell.exe with arguments (powershell.exe -File "C:\powershell\processtorrent.ps1"), or any variation thereof, I get this:
Is there something I'm missing here?
Code: Select all
Event handler TorrentFinishedEvent failed in <function event_handler at 0x024EB370> with exception 'C:\\Powershell\\ProcessTorrent.ps1' is neither a Windows executable, nor a script with a shebang line
Code: Select all
Event handler TorrentFinishedEvent failed in <function event_handler at 0x024EB370> with exception (123, 'CreateProcess', 'The filename, directory name, or volume label syntax is incorrect.')