As this is the advanced scripting forum, do you have some script to show?
Do the switches support a telnet session? If yes, maybe with PuTTY: A Free Telnet/SSH Client or TeraTerm Pro Web 3.1.3 - Enhanced Telnet/SSH2 Client