If you move the irradiation direction, you need a motor to drive it. . Generally, a small DC motor can be used for inaccuracy, and a stepping motor is needed for accurate irradiation of a certain position.
You can replace it with a battery, but you usually need a battery because it has the largest capacity at present. . Of course, it also depends on the power and voltage of your spotlight.