Wyo. Stat. § 1-21-903
Hearing required; warrant of attachment
No person shall be punished for contempt before a circuit court judge until after an opportunity to be heard and for that purpose the judge may issue his warrant of attachment to bring the offender before him.