09 Escape acting posessed!

Ford » Escape » 2007-2012
Question

I have an 09 Ford Escape XLT 3.0 V6 and when I try and take it from park into gear it shuts down and then the windshield wiper fluid shoots out the only way I can get it to go from park into gear is if I disconnect the battery for about 3 hours then it'll go from park into gear and I can drive it but only for a few minutes when I hit the accelerator the car shuts down again and the windshield wiper fluid shoots out. I'm also giving up P0 400 code for the EGR valve and I took that off and tried to clean it and there's not a lot of carbon buildup on it at all but that didn't seem to solve the problem or get rid of the code. Any advice would be appreciated because anybody I've talked to they have no idea it's a mystery to them