In my workflow, I execute a PowerShell script using the ‘Execute Command’ node with the command ‘PowerShell.exe -command C:\script…\script.ps1’. Upon execution of the node, the script is correctly called and runs as expected. However, after the script finishes, the node continues to run without stopping. I am required to manually stop it.
The script works correctly when I execute it outside of n8n. The n8n interface is on the same server as the script. I do not receive any error messages.
The version of n8n is: 1.9.3.
The workflow was functioning perfectly before the addition of this node, and it has no direct impact on the rest of the workflow.
I’m sorry, I’m new to using n8n, but I don’t see a ‘Powershell’ node. Are you suggesting to run the PowerShell script through the ‘Code’ node? Because I only see JavaScript and Python for that node.