When a peremptory mandamus has been issued and directed to any inferior tribunal, corporation, board, or person, if it appear to the court that any member of such tribunal, corporation, board, or any person upon whom the writ has been personally served, has, without just excuse, refused or neglected to obey the same, the court may, upon motion, impose a fine not exceeding one thousand dollars. In case of persistence in a refusal of obedience, the court may order the party to be imprisoned until the writ is obeyed, and may make any orders necessary and proper for the complete enforcement of the writ.
SDCL 21-29-14