An order to show cause issued pursuant to section 27-10-07 may be made in the action or proceeding in or respecting which the offense was committed, either before or after the final judgment or order therein, and is equivalent to a notice of motion. The subsequent proceedings must be taken in the action or proceeding as upon a motion made therein.
N.D.C.C. § 27-10-08