Component to short 2 wires when powered
I would use a relay - the relay contacts are totally isolated from the controlling source so there is no chance of introducing unwanted voltages, and no need to be concerned with the polarity between the points you want to short (although you do have to select a relay whose contacts can handle the voltage and current that may be encountered.