Which Stata (v15.1) command should I use to estimate the following linear model:

y = b0 + b1z + b2x

where:

y is continuous
z is a dummy which is very likely endogenous
x is a vector of control variables

I would like to instrumentalize z with some other predictors. Since z is binary, I should not use ivregress 2sls, right? Then, which command should I use?

I'd really appreciate any help. Thanks!