If any person personally served with summons or subpoena fails, without reasonable cause, to appear or bring the child, or if the court has reason to believe the person is avoiding personal service, or if any custodial parent or guardian fails, without reasonable cause, to accompany the child to a hearing as required under section 260B.163, subdivision 8, the person may be proceeded against for contempt of court or the court may issue a warrant for the person’s arrest, or both. In any case when it appears to the court that the service will be ineffectual, or that the welfare of the child requires that the child be brought forthwith into the custody of the court, the court may issue a warrant for immediate custody of the child.