the court shall, upon motion of the prosecuting attorney, issue a warrant of detainer to the court before which the other prosecution is pending. The court to which the order of detainer is issued, shall, upon termination of the proceedings before the court, deliver custody of the defendant to the sheriff of the county in which the court issuing the warrant is situated. Upon delivery, the court shall return the warrant to the court of issuance showing such fact. A duplicate copy of the return shall be served upon the prosecuting attorney who requested the issuance of the warrant.
IC 35-33-10-2