A person who interferes with the direction of disposition of a child in accordance with an order of the court or judge made in pursuance of this chapter, or with the department, or a probation or other officer of the court in carrying out the directions of the court or judge under an order, is subject to punishment as for contempt of court.