The following works for me:
' name synch.vbs
' notes runs synchtoy and puts PC in standby
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run """c:\windows\bugary.cmd"""
WScript.Sleep 5000
WshShell.Run """c:\windows\synctoy.cmd"""
WScript.Sleep 30000
WshShell.LogEvent 0, "Computer in Standby Mode."
WshShell.Run """c:\windows\shutdn.cmd"""
*************************************************************
:: name bugary.cmd
:: notes backup outlook.pst and favorites to My Documents
xcopy "c:\Documents and Settings\GARY\Local Settings\Application
Data\Microsoft\Outlook\*.pst" "C:\Documents and Settings\Gary\My
Documents\Pst_Favs" /s /i /c /y
xcopy "c:\Documents and Settings\GARY\Favorites" "C:\Documents and
Settings\Gary\My Documents\Pst_Favs" /s /i /c /y
*************************************************************
:: name synctoy.cmd
:: notes run synctoy
"C:\Program Files\Microsoft\SyncToy\SyncToy.exe" -R"My Documents Backup"
*************************************************************
:: name shutdn.cmd
:: note1 puts pc in standby
:: note2 psshutdown available at
www.sysinternals.com/Utilities/PsShutdown.html
psshutdown -d -t 5
**************************************************************
synch.vbs is scheduled to run daily at 3:00 AM. On the settings tab, Wake
the computer to run this task is checked. Additionally, a shortcut to
synch.vbs is placed on the desktop in order to manually run the script and
put the PC in stand-by.