Arduino to imitate a momentary switch

You'll have to use a relay.