The authorities of the state of New Hampshire shall have the same power and authority to detain and transport through this State prisoners arrested in New Hampshire and held for trial or commitment by a court of record in New Hampshire, which they have to detain and transport them in that state.
13 V.S.A. § 4906