My HP Prodesk 400 G4 MT Business PC turns on and shuts off quickly and does that repeatedly

I wanted to play GTA IV on my HP Prodesk so I turn it on and it turns on and it shuts off quickly and it does that repeatedly untill I plug it out from the wall… Can y’all help me