Then you can go for a mosfet switch. But the circuit in the above link needs slight modification.
And If you use a MOSFET based monostable as a switch, you can control the "switch on" time period.
---------- Post added at 19:29 ---------- Previous post was at 19:24 ----------
As it is designed for logic level inputs we know that when the gate is connected to ground it is turned off and when the gate is connected to 5 volts it is turned on. We do not need to use a resistor between the push button switch and the gate because the current is very very low whatever the input voltage (if kept within 0 to 5 volts).
see
https://brunningsoftware.co.uk/FET.htm
---------- Post added at 19:30 ---------- Previous post was at 19:29 ----------
Adjust R2 according to your need