New York Laws
Article 70 - Habeas Corpus
7006 - Obedience to the Writ.

(b) Compelling obedience. If the person upon whom the writ or a copy
thereof is served refuses or neglects fully to obey it, without showing
sufficient cause, the court before whom the writ is returnable, upon
proof of its service, shall forthwith issue a warrant of attachment
against him directed to the sheriff in any county in which such person
may be found requiring him to be brought before the court issuing the
warrant; he may be ordered committed in close custody to the county jail
until he complies with the order of the court. Where such person is a
sheriff, the warrant shall be directed to a person specifically
designated to execute it. Such person shall have power to call to his
aid the same assistance as the sheriff in executing the warrant; a
sheriff shall be committed to a jail in a county other than his own.
(c) Precept to bring up person detained. A court issuing a warrant of
attachment as prescribed in subdivision (b) may at the same time, or
thereafter, issue a precept to the person to whom the warrant is
directed ordering him immediately to bring before the court the person
detained.