How to make a momentary pulse

A range between 100 ms and 10 seconds would be sufficient for what I’m planning on using it. Basically trying to simulate a push button press.

Thanks