Compliance with any order authorized pursuant to this chapter relating to education and/or treatment may be enforced by the court through exercise of its contempt powers; or, where made a condition of probation, by revocation thereof for non-compliance.