A simulated button push shorts two wires on a given device. There are numerous ways to do this, but the safest way is to drive a relay as it will allow for electrical isolation. What type of relay will depend on the voltage and current of the device you're driving, but here is a simple tutorial on driving one: