Hi, I'm trying to run a simple powershell script in ignition. I'm not getting any errors, so I don't know what is wrong with it. I have 2 scripts. On the second script, I'm getting error
"Process[pid=33536, exitValue="not exited"]"
Each time I try running that script the pid changes
system.util.execute([
"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"-File",
"C:\\Users\\user\\Desktop\\writeName.ps1"
])
# Import the necessary Ignition modules
from java.lang import Runtime
# Define the path to your PowerShell script
powershell_script_path = "C:\Users\user\Desktop\writeName.ps1"
# Run the PowerShell script using the Windows PowerShell executable
Runtime.getRuntime().exec(["powershell", "-ExecutionPolicy", "Bypass", "-File", powershell_script_path])