newbie question controlling software and stepper motors

hey guys, not sure im in the right place here but i was wondering if it was possible for an arduino to be used to make a command in a running program repeat itself after a series of switches are triggered?
no idea where to even start looking or if this is something that this could be used for. the triggered switches then need to control stepper motors then trigger the command in the software to repeat. if i could be pointed down the right path i would appreciate it

I agree with @Delta_G

You may find something useful in these links
Stepper Motor Basics
Simple Stepper Code

...R