The commissioner is authorized, by and with the advice and consent of the corporation counsel, in the name of the city, to maintain actions to restrain the threatened performance of any act contrary to his orders, directions, decisions or ordinances or those of the superintendent of public buildings or any violation of the rules and regulations of the department of buildings and to restrain and abate nuisances; and for the purpose of obtaining a temporary injunction in any such action no undertaking shall be required.
N.Y. Second Class Cities Law § 152