As far as finding a connector for the PCM, chances are you won't find one new. You will need to find a good one in a salvage yard.
I'm not sure which wire or wires are in question (pic didn't upload) but there are three connectors at the PCM. See pic below.
Just to confirm, this is a traditional Cherokee and not a Grand Cherokee, and it has the 2.5L 4cyl. Let me know. Although I had one in the past, they aren't very common, and I don't want to give you inaccurate information.
Upload the pic. Hopefully, I will have an idea of how to repair it.
See pic below.
Sunday, January 29th, 2023 AT 8:11 PM