On an application for the exercise of a court's jurisdiction under this Part, the court may make any order under section 10 or section 11 or section 12 or section 14 with the consent of each party to the proceedings, if the court is satisfied that the person in respect of whom the application is made understands the nature and foresees the consequences of the order and consents to it.