§ 351-e. Witnesses' immunity. In any criminal proceeding before any court or grand jury for a violation of any of the provisions of this article, the court or grand jury may confer immunity in accordance with the provisions of section 50.20 or l90.40 of the criminal procedure law.