Set job status to failed on error but continue script execution

Product: PowerShell Universal
Version: 3.7.9

I’m working on a process to send notifications when errors are detected in jobs. I have this working with triggers detecting when a job fails. The problem is, in order for the job to fail I need to have the script’s error action set to stop. But I need the script to continue on errors. Is it possible to have a job jail when an error is detected but continue \ finish processing the script?

Not at the moment but you’re the second person this week to request this: I do not understand the jobs status codes - #4 by adam

:slight_smile: