Hotline1 and nesparky have the idea.
Get a lic Electrician to do the work.
If want advice on the transfer switch?
Get one from the manufacturer of the Genset.
I have found you have fewer headaches if you make one call for service.
Of course I deal with Commercial Gensets not residential.