Thanks for your advice. I did disconnect the battery and lo and behold the check engine light went out and the system returned to normal. And the CC worked. However, this lasted for a day and then the check engine light went on again and I lost the CC.
I took the car to a muffler shop and got a much lower quote.
Next step - Toyota Dealer.