Error when trying to make a automation script

Product: PowerShell Universal
Version: 1.4.6

I have been trying to create scripts in that automation to gather data that my dashboard can then use. The script will go get information from an API and the store it in SQL for the dashboard to retrieve when a user requests the data.

I get this error no matter what I put in the script area.

image

I have simply put write-output “Hello World”

Anyone know why I get this error?

You’d probably need to give more details to be supported here, what version are you running, whats your setup, running in system context or as a service? what os, what environment/ps version? has it ever worked? How are you creating the script - through the UI or on disk and importing? There’s lots of variables in configuring and running PSU so providing more context would help, but just looking at the error it seems pretty explicit that you have an empty string somewhere that’s supposed to be a boolean. Have you checked your powershell universal logs also - anything more detailed there?

Version is 2026.1.3

I am running it in IIS under apppoolidentity.

OS is server 2022

Environment is PW 5.1

I am creating the script within the web UI under automations → scripts.

I check the logs from within the script area, but it shows nothing. Even if I write a one line script that says write-error “Some text”. That does not go into the log. Seems like it is erroring before the script even runs. I know it’s something stupid, since I do have one script that does work, but it’s driving me bonkers.

Check the log files in your c:\ProgramData\PowerShellUniversal\Logs\ folder

I have three folders in that folder. PowershellHost, System, and User.

Neither of those log files show any information after I try and create a script.

No need to worry. I’ll figure it out. I just thought someone would be able to pinpoint what stupid thing I am missing right away.

I guess it’d be worthy to note that I just moved it to this IIS server, so I am resetting everything up.