(b) A corporation's power to act may be challenged:
(1) In a proceeding by a shareholder against the corporation to enjoin the act;
(2) In a proceeding by the corporation, directly, derivatively or through a receiver, trustee or other legal representative, against an incumbent or former director, officer, employee or agent of the corporation; or
(3) In a proceeding by the attorney general under section one thousand four hundred thirty, article fourteen of this chapter.
(c) In a shareholder's proceeding under subdivision (1), subsection (b) of this section to enjoin an unauthorized corporate act, the circuit court may enjoin or set aside the act, if equitable and if all affected persons are parties to the proceeding, and may award damages for loss, except loss of anticipated profits, suffered by the corporation or another party because of enjoining the unauthorized act.