This will work as described directly from MPG but the problem will be the number of pulses per turn, probably 100, will mean take forever to move any distance.
For instance, even at full step it will take 2 turns for 1 rev of motor. I'm pretty sure those drives smallest micro stepping is 400 so that will be 4 turns per rev.
To move quickly you'll need multiplier and this will need some hardware.

Could use something like this if just want to drive up/down.
https://www.ebay.co.uk/itm/Stepper-M...8AAOSwrhBZCAYH
or this
https://www.ebay.co.uk/itm/Speed-Ste...YAAOSw5ZBWNHpQ

You'd have probably been better of buying analog drive that allows you to connect potentiometer and drive with voltage.
https://www.zappautomation.co.uk/uim...or-driver.html