The validity of corporate action may not be challenged on the ground that the corporation lacks or lacked power to act. However, a corporation's power to act may be challenged in the following proceedings: (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 §