More information is needed:
1/ which kind of charge these "switches" are going to power (AC or DC, voltage, current)?
2/ how many "switches" do you need?
3/ which port are available to drive your "switches" (USB, serial, //, other)?
4/ how this interface will be powered (from USB, from an external adapter, battery)?
5/ how frequent are the changes (once per ms, once per s, once per hour, once a month,...)?
6/ do you care about cosmetic (a pretty ad-hoc box) or is a hobby-style device OK?
7/ what is your budget for the hardware part?
Depending on your 7 answers, there can be several solutions, ready-made or more DIY.