When the secretary finds that the operation of a facility constitutes an immediate danger of serious harm to children served by the facility, the secretary shall issue an order of closure terminating operation of the facility. When necessary, the secretary shall place or direct the placement of the children in a residential facility which has been closed into appropriate facilities. A facility closed by the secretary may not operate pending administrative or judicial review without court order.