The impact of child health on the school enrollment

so child's health is endogenous and the author is predicting it from the previous period using instruments as three food prices (also from previous period) using OLS
regress Heightforage wheatprice milkprice riceprice controls
predict heightpred,xb


second stage is probit
probit schoolenroll heightpred controls

he has done manually

i wanted to know if i can do this with ivreg/ ivprobit
if yes then what can be the command