Hello,
I've created a custom command to run a script which will send an email alert if the script encounters an error. I have the command set to run as a scheduled task.
How would I dynamically display the name of the custom command and scheduled task in the email alert?
This is an example of what I'd want to show in the email alert from the Powershell script that sends it:
Custom Command Name:
Task Name:
Time:
Error Message:
Thank you.