I can only get you started.
Depending on a "trigger event" could be more trouble than making a simple batch that replaces the command they run at the backup time. a Simple batch could do the shutdown right after the backup program finishes.
Go to the task scheduler item, pull the "code" out, the program that runs and the parameter it uses when it runs.
Put that into a notepad. put a "shutdown" command on the next line. Save that out as your BackShut.bat, or rename it to .bat somehow.
then attempt to test and debug it (the hard part).
backup.exe (with correct paths, and parameters)
shutdown.exe
The batch will need to wait until the backup is complete, before shutdown. so use the "Start" command with a wait, to start the backup in the batch.
start /wait "c:/windows/the backup program.exe"
ECHO Now I'm waiting until the backup returns or finishes
"c:/wherever/it is/Shutdown.exe"
The wait parameter will cause the script/batch to wait till the program returns, as opposed to running both at once (multitasking bad here).
Then put that simple 2 line batch file and path to it, back into the task scheduler, as the task to run. (and debug till it works correct)
Backup command -> http://technet.microsoft.com/en-us/library/cc754015(WS.10).aspx
Shutdown command --> http://technet.microsoft.com/en-us/library/cc732503(WS.10).aspx
The registry stores the backup params around here HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsBackup\ScheduleParams\Rules
LOL this post is like buying a Desk, you have the parts, but without the correct assembly you have nothing. And the manuel is in babble.
I would test this method myself, but I see no point in it. The computer should wake from standby to do the backup, and go back into standby after the task is complete. The system is designed to be able to do that. You should not need to do a batch.
but Me trusting MS to pull 3 things off in a row, I would rather do it manually and with a program that does not require any aspect of that OS to do a recover. My backups must be incramental, without a few of them , they can be completely useless items. If I make a Backup today, it could already have a virus in it, or some screw-up that I did. without last weeks backup ALSO, it isnt very usefull.
With a simple batch working correct, you could possibly do a rename/copy of the ONE Image backup that windows makes , before running the next backup. Adding more lines to the script, and making the windows backup more usefull. (from what I read Imaging in MS is overwriting the last backup) File backup is different.
rename E:\BackupFolder\OriginalBackup YesterdaysBackup (takes miliseconds)
Backup.exe (can now go to the OriginalBackup location)
Then complicate it more. . . (for spaces in these paths or filenames "c:\Use\The Quotes")
rename "E:\Backup Folder\YesterdaysBackup" LastWeeksBack
Echo The file must exist to rename it, I have space and miliseconds :-)
rename "E:\Backup Folder\OriginalBackup" YesterdaysBackup
and so on, starting simple, and testing, then complicating it till it breaks.
Side Notes: I forgot that MSes Shutdown command does not include "Standby". there is a 3rd party Shutdown.exe that does standby also.