Safely shuts down the computer, to prevent invalid memory. Forces all processes and services to close, and shuts down the computer. At default, 30 will elapse before the computer shutsdown. Also creates an even log entry, under system failure.  

PowerShell
Edit|Remove
shutdown -s -f -t30 -d:u