The department may make or have made a special inspection or investigation into the work of a licensee that it considers necessary, may issue subpoenas and process compelling the attendance of any person and the production of any papers or books, for the purpose of the investigation and examination, may administer oaths when required, and may petition a court of the state to enforce subpoenas and process or to compel testimony.