(3) The magistrate shall issue a warrant for that purpose to the police officer, and deliver to him or her the complaint and recognizances, if any taken by him or her, to be delivered to the magistrate before whom the defendant is to be brought, and the complaint and recognizances, if any, shall be treated to all intents and purposes as if they had been taken by that magistrate.