At any time while any recount is pending before a county recount board, the circuit court for such county, on petition of any interested person, and upon due notice to such board, if satisfied that such board has acted fraudulently or arbitrarily and in disregard of law, and in such a way as likely to reach an unfair result, may order any ballots already recounted to be recounted a second time. Such petition, however, must be filed prior to final certification of the recount, and to give opportunity for hearing and decision, the court may enjoin such certification for a period not exceeding three days.
SDCL 12-21-45