Except as provided in Sections 709 through 712, if maintenance, child support or both, is awarded to persons who are recipients of aid under "The Illinois Public Aid Code", the court shall direct the husband or wife, as the case may be, to make the payments to (1) the Department of Healthcare and Family Services
if the persons are recipients under Articles III, IV or V of the Code, or (2) the local governmental unit responsible for their support if they are recipients under Article VI or VII of the Code. The order shall permit the Department of Healthcare and Family Services or the local governmental unit, as the case may be, to direct that subsequent payments be made directly to the former spouse, the children, or both, or to some person or agency in their behalf, upon removal of the former spouse or children from the public aid rolls; and upon such direction and removal of the recipients from the public aid rolls, the Department or local governmental unit, as the case requires, shall give written notice of such action to the court.
750 ILCS 5/704