Q: How much is it to replace a PCM? Dealer says it's loosing memory. on 2008 Ford Taurus

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
We seemed to be setting of the Anti-theft system with trying to start the car. We couldn't tap the starter. If we wait long enough, a day or more, it will eventually start but then the engine light is on. Midas couldn't figure it out. Took it to the dealer, he's saying the PCM is loosing memory and needs to be replaced. He said it isn't the keys. I'm wondering what this is going to cost and if I have to have the dealer do the work.
(2) Answers
Get another opnion maybe another dealer if you have to. PCM? I dont think that sounds right but I may be wrong. Battery/starter and charging systems been checked?
Qualified Local Ford Shops
Qualified Ford Shops For This Repair