N.Y. Civil Practice Law & Rules § 5602
1. in an action originating in the supreme court, a county court, a surrogate's court, the family court, the court of claims, an administrative agency or an arbitration,
2. in an action originating in a court other than the supreme court, a county court, a surrogate's court, the family court, the court of claims or an administrative agency.