Is it shutting down or is the screen just going dark? Cheapest thing to try is to run it on wall power with no battery, if that does not work, try a new power brick. If that does not fix it, take apart the laptop, clean out all the fans, try it again. If that does not work you probably need to have the motherboard replaced.