Truepower:
There are manual interlock kits available for some manufacturers panels & breakers that allow a backfed cb (generator input) to be installed in a panel and prevent any backfeed into the utility grid..
Note the key word 'manual'!
I do not know of any ATS equipment that may do what you described.
Scott35 is our 'go to EE here & he may have a solution, but IMHO it will not be easy & inexpensive.