Michigan...
The AHJ has the right to terminate work. If the person refuses, the AHJ can get a judge to have the cops come in and make sure work is terminated.
There are NO electrical laws on farms. Article 547 is not enforced in Michigan. That means agricultural buildings need no permits, no licensed anything and they don't even have to follow the NEC.
Michigan does not recognize licenses or registrations from other states. Journeymen from other states have to register as an apprentice and work with a Michigan journeyman.
I don't know just how much authority the inspectors have at forcing work to stop or even calling in the cops to remove workers, I know they can ask them to leave but not sure just how much further they can go from there. That said they still can order power to be disconnected (by POCO) if they feel something is not safe, and that I imagine can also be because non qualified people are working on the project.
Wiring for agricultural purposes has always been exempt from requiring inspections here. Agriculture is the single largest industry in the state and that is just the way it has always been. That doesn't mean it is legal to wire for someone else if you are not licensed- even in agriculture, but there is seldom any prosecution for breaking that law. I don't know what happens when there is an electrocution in those places, but imagine it is up the the family of the victim if they want to go after someone, but at same time the owner or the victim themselves are just as responsible for poor wiring as the original non qualified installer.
There have been some POCO's that will not connect a service over 250 volts without an inspection and that has helped clean up some things in those instances, but only at the initial install, once that first inspection is done the inspector never comes again for any additional work.
There has been talk of some changes and irrigation and grain storage were proposed to be included in items that require inspection but so far nothing has been changed, but I wouldn't be surprised if someday we don't see that happen. Farming operations are getting larger as it is not worth costs to do these operations on a small scale any more. That means equipment and facilities are getting larger and requiring more power then ever. More 480 volt services are popping up at these sites then ever before. Not that 120/240 isn't hazardous but 277 to ground is not what most typical farmers or handymen need to be playing with anyway. Many seem to find they don't know what they are doing especially if it involves three phase and if they try to fix something themselves it usually makes things worse in the long run and they often just call a pro right away.
Farmers are good at taking covers off of things and then not replacing them - eventually the cover is lost and then you have exposed live components, and is often in the outdoors or other harsh environment as well.