Error and script stuck enqueued when run with boolean parameters

Product: PowerShell Universal
Version: 4.1.7

I have a script that takes multiple boolean inputs.

Here are the Params and the Run Script selection

image

When running the script manually from the admin console it gets stuck enqueued and this page pops up after a few seconds

Also, since the job is stuck enqueued I can’t actually cancel it from the admin console. I have gone into the hangfire and deleted the job there, but it still shows as queued in the job list. Does it take a while to clear from the job list when deleting from hangfire?

As as test I commented out the entire script except for the param block and ran it again. Same issue as before, so I don’t think it’s something with the script itself.