In all cases where such agency, board, commission or department is under the direction of one or more elected officers such officer or officers may become notaries public in like manner as provided in the case of employees as aforesaid.