Each day a person, firm or corporation violates any provision of this article shall constitute a single violation. Whenever there shall be a violation of this article, an application may be made by the attorney general in the name of the people of the state of New York to a court or justice having jurisdiction by a special proceeding to issue an injunction, and upon notice to the defendant of not less than five days, to enjoin and restrain the continuance of such violations. If it shall appear to the court or justice that the defendant has in fact, violated this article, an injunction may be issued by such court or justice, enjoining and restraining any further violation, without requiring proof that any person has, in fact been injured or damaged thereby. Whenever the court shall determine that a violation of this article has occurred, the court may impose a civil penalty of not more than one hundred dollars for the first violation and two hundred dollars for each violation thereafter, but in no event shall the total penalty therefor exceed one thousand dollars. In connection with any such application, the attorney general is authorized to take proof and make a determination of the relevant facts and to issue subpoenas in accordance with the civil practice law and rules.