Under the circumstances prescribed in this article, a person confined in an institution within this state pursuant to a court order may, upon application of a party to a criminal action or proceeding, demonstrating reasonable cause to believe that such person possesses information material thereto, be produced by court order and compelled to attend such action or proceeding as a witness.
N.Y. Crim. Proc. Law ยง 630.10