Help with: Stepper Motor Power-off when not in use

Perhaps you should tell us some details like which stepper motor,
which stepper motor driver, how they are powered, which library(s)
you are using (your code?)....