Children, subject to proceedings in juvenile court, may be admitted to the youth services center for temporary detention while awaiting disposition of the court pursuant to RSA 169-B:14, for educational services pursuant to RSA 186-C, RSA 169-B, RSA 169-C, or RSA 169-D, only upon prior approval of the commissioner.