computer powers off running scenarios

I'm having a very annoying problems and have no idea what to look for.
I will be running a scenario (different ones) and after some time my computer will shut off. It's like the power cord was pulled out from the computer.
I restart the conputer and it want's to know if I want to start in safe mode because of the shut down. I don't and everything starts up ok.
I rerun the scenario and it goes by the crash point with no problem and may or may know crash again at some other point in the scenario.
The problem is: It only happens when I'm running scenarios. it's like a shut off code is being genarated. (wild guess by me)
I'm on a battery back up system and all the othe things In have on it like my monitor do not show any signs of a power problem so I don't think that is the problem.
here are my computer specs:
HP Pavilion p6313w-b Desktop PC Bundle with AMD Athlon II 215 Dual Core Processor, Windows 7 Home Premium & 21.5" LCD Monitor 64 bit cpu
I feel like there is some setting in the computer that I could set to solve the problem but don't know what it is.
Any help or suggestions will be greatly appricated.
Thanks
Dave
I will be running a scenario (different ones) and after some time my computer will shut off. It's like the power cord was pulled out from the computer.
I restart the conputer and it want's to know if I want to start in safe mode because of the shut down. I don't and everything starts up ok.
I rerun the scenario and it goes by the crash point with no problem and may or may know crash again at some other point in the scenario.
The problem is: It only happens when I'm running scenarios. it's like a shut off code is being genarated. (wild guess by me)
I'm on a battery back up system and all the othe things In have on it like my monitor do not show any signs of a power problem so I don't think that is the problem.
here are my computer specs:
HP Pavilion p6313w-b Desktop PC Bundle with AMD Athlon II 215 Dual Core Processor, Windows 7 Home Premium & 21.5" LCD Monitor 64 bit cpu
I feel like there is some setting in the computer that I could set to solve the problem but don't know what it is.
Any help or suggestions will be greatly appricated.
Thanks
Dave