How can electrically short these terminals?
A 2 channel SPDT Relay Board, activated by 2 micro-controller outputs, could do that.
Should remote operation be required, a 2 channel SPDT RF relay board, with companion remote, could be used.