When an indictment has been presented against a person who is not in custody, and has not been committed for trial or held to bail to attend to be tried upon the charge set forth in the indictment, or who does not appear to be tried upon the charge set forth in the indictment, a judge of the court in which the indictment is presented may issue a warrant under the judge’s hand to arrest the accused person and bring the person before a justice of the peace; and the justice before whom the person is brought may commit the person to prison until the person can be tried on the indictment, or may, in a proper case, grant bail.