In exercising the powers granted by this section, the Board of Appeals may, in conformity with the provisions of MGL c. 40A, 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 issuance of a permit.