(b) Except as provided by law or within this act, when any department, commission or board or other agency is transferred by a type II or type III transfer to a principal department under the provisions of this act, the functions of the department, commission or board or other agency shall be administered under the direction and supervision of the head of the principal department.