Welcome to Tom's Forum!
To rule-out an OS/Apps problem - run MSCONFIG and select Diagnostic Mode and reboot. If that solves chances are the problem you've got an OS/App corruption/problem. Run System Restore and choose a restore point prior to the problem and in particular prior to an update or app installation.
Otherwise, the 'typical' abrupt shutdown is from a failing PSU.