A board of appeals shall have the following powers:
In exercising the powers granted by this section, a board of appeals may, in conformity with the provisions of this chapter, make orders or decisions, reverse or affirm in whole or in part, or modify any order or decision, and to that end shall have all the powers of the officer from whom the appeal is taken and may issue or direct the issuance of a permit.
Mass. Gen. Laws ch. 40A, § 14