Action Exit code -65536

Hi ,

i have following simple fixlet which works perfectly on one environment, but on a differnet environment it throws the exit code -65536

action parameter query "ErrorFolder" with description "Please enter the Folder Name and Path" with default value ""



// Disable wow64 redirection on x64 OSes


action uses wow64 redirection {not x64 of operating system}



if { not exists folder (parameter "ErrorFolder")}


folder create {parameter "ErrorFolder"}



endif


createfile until END_OF_FILE
echo "Hello_World" >> {parameter "ErrorFolder"}\Output.txt

END_OF_FILE


delete {parameter "ErrorFolder"}\powershell1.ps1


move __createfile {parameter "ErrorFolder"}\powershell.ps1 


waithidden { pathname of file ((it as string) of value "Path" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" of native registry) } -ExecutionPolicy Bypass -File {parameter "ErrorFolder"}\powershell.ps1

In the environment where it throws the exit code , the execution policy is set to unrestricted. is this error related to execution policy or there is some other problem ?

I don’t see any problems with the script’s execution, thus it appears to be working perfectly. However, if you are seeing errors, I advise using the conventional method and testing it locally.