Chosen Solution
I just replaced the power and sensor cable to fix an inop power button. Now when I plug it into the computer it starts to boot, then reboots, and shows some script it is running, but never gets past the apple logo screen with some script. Randomly reboots. Any ideas?
Try powering it on with the replacement parts detached. If it boots normally, then acquire new replacement flex cables. If not- check for damage to the mother board.