Reida, you can purchase a new cord at most any Camping World store or even Ebay. I suggest that if you have a working automatic transfer switch that you retain it and hardwire the new 50amp (if your coach is wired for 50amp) cord to it .
Yes, you can eliminate the ATS altogether and just have an outlet wired from the generator output to plug your shore cord into. Although, the cost differences of replacing a failed ATS vs wiring a new outlet for your cord will probably be a "wash".
94-Newmar Kountry Star 40-KSDP
Spartan/Cummins 8.3C-300HP/Allison 3060 WTEC-II/25yr RV Tech RVIA Certified/Onan-Cummins Certified