Some syntax in PowerShell scripts do not cause the script task to exit with the proper exit code.
Causes the script to exit with error code 0 making it seem like everything in the script was successful
This was caused by the fix to another issue.
Use different syntax. For example: