Power source
Voltage
Available current
Current needed by the load
Physical size available
Quantity
A mechanical switch that makes contact for only a brief period of time when its button is pushed and held down is possible, but the E in EP stands for electronics. A circuit that takes a momentary or stationary input switch button press) and turns it into an electrical signal (pulse) of a consistent, fixed time period (pulse width) is called a monostable multivibrator, or just monostable for short.
If you are sure that the switch press *always* will be longer than the desired output pulse, the circuit gets pretty simple, a differentiator plus an output driver.
If the input might be longer or shorter than the output, then you need a true monostable, something that has feedback and control gating. Again, simple circuits, but dependent on the details.
ak