The extraordinary remedy of mandamus is available, in limited circumstances, only to compel the performance of a purely ministerial act which does not involve the exercise of official discretion or judgment, and only when there is a showing of a clear legal right to the relief.
Matter of Harper v. Neary, NY Slip Op 01176 (2d Dep't March 6, 2024)