The authorities of the state of New York shall have the same power and authority to detain and transport through this State persons convicted of offenses and sentenced to be confined in a penitentiary in the state of New York, which they have to detain and transport them in such state.
13 V.S.A. § 4905