Upon any investigation or proceeding before the department, or in any criminal proceeding before any court or grand jury, pursuant to or for a violation of any provision of this article, the department or the court or grand jury may confer immunity in accordance with the applicable provisions of the criminal procedure law.