(a) The commissioner shall exercise all powers vested in the office. He may delegate any function, power, or duty assigned to him or to the office of mental health to a director of a facility operated by such office or to any other officer or employee of such office, unless otherwise provided by law. He may enter into agreements with the executive director of the justice center for the protection of people with special needs or the other commissioners of the department in order to ensure that programs