N.Y. Comp. Codes R. & Regs. tit. 18, § 900.23
(2) If it shall appear after such investigation that the residents of the facility are cruelly, negligently or improperly treated, or that inadequate provision is made for their sustenance, clothing, care, supervision or other condition necessary for their comfort and well-being, the office, may issue an order in the name of the people, and under the official seal of the State, directing the appropriate officers or managers of such facility to modify such treatment or provide such other remedy as may be specified therein. Before any such order is issued, it must be approved by a justice of the Supreme Court, after such notice as they may prescribe and after an opportunity to be heard, and any person to whom such an order is directed who shall intentionally fail or refuse to obey its terms shall be guilty of a misdemeanor.
(b) Enforcement.
(2) Enforcement actions undertaken by the office may include, but are not limited to:
(5) Any order or determination to limit an operating certificate shall specify the manner in which the operating certificate is to be limited. An operating certificate may be found subject to one or more of the following limitations:
(d) Whenever the office has knowledge, acquired by announced or unannounced inspections, audits, or other methods, or has been advised by any State or local entity authorized to conduct inspections or audits, that there exists a violation of law, regulation, or code with respect to any shelter for families in which there are conditions that are dangerous, hazardous, imminently detrimental to life or health, or otherwise render the building not fit for human habitation, the office may take immediate emergency measures, including, but not limited to, one or more of the following:
(a) Investigations.