It shall be the duty of local boards of health to enforce the public health law, the state sanitary code and local sanitary codes whether promulgated by the county or any of the political subdivisions within said county. A local board of health is hereby authorized to make an ex parte application for a temporary restraining order and upon sufficient proof to satisfy it, the court may grant such an order, where there is a violation within the jurisdiction of the local board of health which requires immediate relief.
N.Y. Pub. Health Law § 1308