CAREFUL!
The PCM is very robust. I would be very slow to assume it is the "root" problem. .... and when replaced, may require reprogramming with equipment only at Ford dealer.
IIRM, the PCM is removable with two small screws .... just under the RH hood hinge.