Any person who is required by law to obtain or maintain a license or permit issued or approved by the secretary to legally perform any act or engage in any form of business, who fails to obtain or maintain such license or permit or whose license or permit has been revoked and cancelled, may be enjoined from performing the act or engaging in the business. The secretary may petition a judge of the circuit court for the county where the licensed or permitted activity takes place for a temporary restraining order restraining that activity. The petition shall be verified by the secretary and set forth reasons why the petition should be granted. The petition shall include a certification by the secretary that a license or permit has not been obtained or maintained or has been revoked or cancelled after notice and hearing. Upon receipt of the petition and verification that the petition complies with this section, the circuit court judge shall issue a temporary restraining order restraining the person from engaging in the activity. The order shall have the effect of a temporary restraining order under chapter 21-8. With at least three days notice to the parties, a hearing shall be held within five days from the granting of the temporary restraining order. The person being restrained shall be given an opportunity to show compliance with all lawful requirements for obtaining the license or permit. If the person shows compliance with all lawful requirements for obtaining the license or permit, including any bonding requirements, the temporary restraining order shall be dissolved. If the person does not show compliance with all lawful requirements for obtaining the license or permit, he shall be enjoined from engaging in the activity until all lawful requirements for obtaining the license or permit are met or further order of the court.
SDCL 10-59-14