(1) In an action by a member or director against the electric membership corporation to enjoin the doing of any act or the transfer of real or personal property by or to the electric membership corporation, unless the plaintiff has assented to the act or transfer in question or in bringing the action is acting in collusion with officials of the electric membership corporation. If the unauthorized act or transfer sought to be enjoined is being or is to be performed or made pursuant to any contract to which the electric membership corporation is a party, the court may, if all the parties to the contract are parties to the action and if it deems the same to be equitable, set aside and enjoin the performance of such contract and in so doing may allow to the electric membership corporation or to the other parties to the contract, as the case may be, compensation for the loss or damage sustained by either of them which may result from the action of the court in setting aside and enjoining the performance of such contracts; but anticipated profits to be derived from the performance of the contract shall not be awarded by the court as a loss or damage sustained;
(2) In an action by the electric membership corporation, whether acting directly or through a receiver, trustee, or other legal representative or through members in a representative action, against an incumbent or former officer or director of the electric membership corporation for loss or damage due to his unauthorized act; or
(3) In an action by the Attorney General to dissolve the electric membership corporation or in an action by the Attorney General to enjoin the electric membership corporation from the transaction of unauthorized business.