Controlling hardware with serial port
I recommend an Arduino board and any one of the many existing "relay shields" for it. Arduino connected via USB to computer is easily programmed to present a virtual COM port where you can send commands. Then you can close relay contacts by just switching an Arduino output pin from LOW to HIGH state.