Automatic button presser

dear all

what is a solution to have something keep pressure on a button for a certain time controlled by our pcb

solenoid or is their a better solution

we have a handle we want to keep pressed down for a certain time to release some liquid