Sounds like my old Dell when the CPU died. It is turning off because too much current is being drawn. Replacing the CPU solved it. YMMV.
open