Both CPLR 6301 and 6312(a) require a link between a cause of action and the preliminary injunction. In the absence of such a link, the motion will be deined.
Davis v. Influx Capital Group, LLC, NY Slip Op 03077 (1st Dep't May 28, 2020)
Here is the decision.