When an order is made in favor of a person who is not a party to the action, he may enforce obedience to the order by the same process as if he were a party; and, when obedience to an order may be lawfully enforced against a person who is not a party, he is liable to the same process for enforcing obedience to the order as if he were a party.
SDCL 15-6-71