Plenty of possibilities:
Heat related issue.
Hardware issue or error.
Computer virus.
Issue with operating system.
Some computers some with thermal sensors (i have an emachine with a thermal sensor) what you need to do is boot your computer, so into the system setup, usually its f2, check for a "hardware monitor" option, if you cant find it, it may not be equipped with your computer.
If anything was recently add to your computer (hardware related) try removing it, it may be conflicting with your current hardware.
some computer virus's are designed to shut the computer off when certain programs are executed.
if all else fails, it may be windows OS, that may be doing it. something in windows may be missing or corrupt thats conflicting with the programs your trying to open. You might have to reinstall windows.
possible hardware that would crash your computer:
RAM, CPU, Motherboard, and the power supply.
hope this helped.