The extraordinary remedy of mandamus will lie only to compel the performance of a ministerial act, and, then, only where there is a clear legal right to the relief sought.
Matter of Weaver v. Cohen, NY Slip Op 04977 (2d Dep't September 15, 2021)
Here is the decision.