Whenever in the judgment of the department, any person has engaged, or is about to engage, in any acts or practices that constitute, or will constitute, an offense against Division 5 (commencing with Section 11100) by engaging in any act subject to license requirements without having obtained a license, the department may apply to the appropriate court for an order enjoining the acts or practices, and, upon showing by the department that the person has engaged, or is about to engage, in any of those acts or practices, an injunction, restraining order, or other order that may be appropriate shall be granted by the court, including the costs incurred by the department in obtaining the order.