Not a mopar - 2002 Trailblazer question

Sorry guys if this is in the wrong spot but I'm in a bind.

My dad has a 2002 trailblazer, 4wd, 6 cylinder.

He paid someone to fix some PS lines and they hosed something up. They put in 2 new coilpacks. New crank position sensor. New ignition switch. New oil pressure sensor. Rebuilt PCM. WHY??? Well..

It runs for 10 seconds and shuts down when warm. Runs for 10 minutes cold.

I found out he had a bad battery and replaced it.

Here is the weird part. The damn thing runs fine if I start it up and unhook the battery immediately. Ran it for 45 minutes on the alternator. Hook the battery up and it shuts down after about 1 minute.

I'm LOST and could use some help with ideas. Again, runs with no battery, dies when battery is hooked up.