Execute PowerShell Script using remote-shell-script runner

Hello All

We are using openssh in windows for password less connectivity from stack storm server and hence I can’t use winrm action runners.

I need to run powershell scripts and they fail from remote-shell-script.

Stderr : “‘export’ is not recognised as internal or external command, operable program or batch file”

Is there any way to execute power shells script from remote-shell-script runner.

Running SSH onto windows is very special and is not supported by StackStorm. I highly suggest looking at Bolt which allows you to describe the login-shell of the remote target as PowerShell: https://puppet.com/docs/bolt/latest/bolt_transports_reference.html#login-shell

There is also a StackStorm pack for Bolt here: GitHub - StackStorm-Exchange/stackstorm-bolt