If a person is returned to the court under section seven hundred seventy-one, the court may make any order that might have been made at the time the order of placement was made, except that the maximum duration authorized for any such order shall be decreased by the time spent in placement.
N.Y. Family Court Law § 772