When any contractor not licensed by the Contractors Licensing Board shall engage or attempt to engage in the business of contracting as herein defined, the board shall have the right to go into the proper court in the jurisdiction in which the work is being performed and, upon affidavit, secure a writ of injunction, without bond, restraining and prohibiting the contractor from performance of the work then being done or about to commence.