(b) If necessary, the department may petition the circuit court:
(1) For a valid court order, as defined in section four, article one of this chapter, to enforce compliance with a service plan or to restrain actions that interfere with or defeat a service plan; or
(2) For a valid court order to place a juvenile out of home in a nonsecure or staff-secure setting, and/or to place a juvenile in custody of the department.
(c) In ordering any further disposition under this section, the court is not limited to the relief sought in the department's petition and shall make every effort to place juveniles in community-based facilities which are the least restrictive alternatives appropriate to the needs of the juvenile and the community.
(d) The disposition of the juvenile may not be affected by the fact that the juvenile demanded a trial by jury or made a plea of denial. Any order providing disposition other than mandatory referral to the department for services is subject to appeal to the supreme court of appeals.
(e) Following any further disposition by the court, the court shall inquire of the juvenile whether or not appeal is desired and the response shall be transcribed; a negative response may not be construed as a waiver. The evidence shall be transcribed as soon as practicable and made available to the juvenile or his or her counsel, if it is requested for purposes of further proceedings. A judge may grant a stay of execution pending further proceedings.