email alert after task scheduler execute a script.
I have a ps script to backup a server and i scheduled it via task scheduler to run. The script runs and backup works as I expected. I would like to modify the script for me to send an alert after the execution of the script. I do not care whether it is a successful backup or the backup ha failed. I only want to remind you the script ran on this day and time. I will appreciate it if you could list a statement so I can put that at the end of my script.