If judgment be rendered in such action against a corporation or against a person claiming to be a corporation, the court may cause the costs therein to be collected by execution against the person claiming to be a corporation, or by attachment or process against the directors or other officers of such corporation.
SDCL 21-28-16