If the pumps need 240 volts many consumer generators can’t accommodate that.
Sure, but I think that most pumps are 110-120, and 220v generators aren't much more than 110v.
The big thing is that the National Electrical Code and National Fire Code, will require that the generator cut in location be far away from the pumps, and that the generator not start pushing current out the "in" wire and back out on the grid. The State should write a good spec, then forbid local government from screwing with it.