I totally agree, but I still like to know the details. Between the building code, NFPA, and UL standards there is definitely a big mess going on - between people who want to be controlling because they believe everybody else doesn't know better, to protect them from themselves, to people (corporations) who are using it as a barrier of entry to protect a market...
NEC:
If you have it on a trailer that is "portable," located not less than 5' from the building, and cord-and-plug connect it to the building then the trailer itself is not covered by the NEC. (This would be similar to a portable generator on a trailer hooked up to a building.) All that is required is proper overcurrent protection on the feeder between the two.
Other NFPA Standards:
Generally other NFPA standards apply only when adopted by the local codes. They can be a handy reference though for specific areas even when they are not adopted. They may also be "referenced" by other codes which does not give them force of law, but the inspector can use them to help determine if something is compliant or not.
Utility:
If your source of power is not paralleled with the utility (capable of backfeeding the grid) then the utility has no jurisdiction.
Building Codes:
Building codes do not have scope over portable equipment.
Fire Codes:
Full authority on your property generally speaking as it relates to fire safety.
Planning/Zoning:
Varies by location, but they can define what is "portable" in some contexts (like a car on blocks in the front yard for a month), where you can park a trailer, how big it can be, etc. In some locations they can require you to have electrical utility service.
UL:
Generally speaking for this type of case, UL is more of a permissive approach than a restrictive one-- Having a UL label means you don't need to worry about the other codes dictating requirements for your installation, within its scope. You can actually have a UL inspection done on a "novel" system, get it a letter, and tell the inspector to go away. But, you pay a lot of money for the privilege.