Most probably problem with :
If some error in line then screen will flash and nothing will happen.Code:E:\WINDOWS\system32\shutdown.exe -s -t 50
Try running code on command line as Admin:
If works then command is fine and use it in your Schedule task.Code:shutdown.exe -s -t 50
Advert.