docs
docs copied to clipboard
How to run a Poweshell script in an inline-script step
Describe the bug
If you configure in the PyWinRm Node executor, with shell: powershell, and you run an inline script step whitout any invocation string, and file extension, the script will run in CMD.exe.

Would be clear for customers, to have more information about how to run a Powershell script like adding examples using the invocation string, and file extenion, like this:
Invocation string=powershell.exe
File extension=ps1

Source page https://docs.rundeck.com/docs/manual/node-steps/builtin.html#script-step https://docs.rundeck.com/docs/manual/projects/node-execution/powershell.html