General order 5
From FEInfobase
In cases of extreme emergency, Federation Special Representatives are empowered to assume emergency powers to deal with a condition or circumstance that is deemed hazardous to the welfare of Federation citizenry. Within the scope of these emergency powers, duly authorized civilian personnel may assume temporary command of Starfleet vessels and/or personnel to deal with the emergency. Starfleet personnel must submit to their authority for the duration of the crisis.