Help with steppermotor

How did you power up this stepper motor? using DC power supply or just batteries?