If a custody or visitation order has been entered by a court of competent jurisdiction and the child is taken or detained by another person in violation of the order, the district attorney shall take all actions necessary to locate and return the child and the person who violated the order and to assist in the enforcement of the custody or visitation order or other order of the court by use of an appropriate civil or criminal proceeding.