This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Alteryx can use theRun Command Toolto runPowershell scripts and perform any Powershell specific commands. Note that in order to run PowerShell scripts you must make sure you have scripting enabled. You should consult with your IT department to see if you are allowed to enablethis functionality.
Below is an example I made demonstrating the necessary run command tool configuration. The command will justbe “PowerShell” toenable PowerShell mode in cmd.exe. Then your command arguments shouldbe the path where the script is located so it can run:
In this particular case, I want to read into the Designer the results of my script, so I specify thefile that is being writtenas the Read Results. My “helloworld.ps1” script only contains the below:
"Hello World" | Out-File c:\temp\test1.txt
As you can see, this kicks off in the Designer and opens the script output file to continue downstream, successfully implementing Powershell scripting: