The Department of Health and Social Services and Department of Services for Children, Youth and Their Families may make and adopt rules and regulations in respect to the release, whether temporary or permanent, of patients in their respective programs at the Center, except that any person committed to the Center by a court of this State shall not be released from the Center except upon an order from such court. When a person committed by any such court is eligible for release, the Department of Health and Social Services or the Department of Services for Children, Youth and Their Families may petition such court for the release of any such patient.