(1) This section applies if a child or young person is the subject of a proceeding in a court.
(2) On the application of a party to the proceeding, the court may excuse the party from attending all or part of the proceeding.
(3) The court may, at any time and by notice given to the party, require the party to attend the proceeding.