script to open new cmd prompt for devices on visio

Hello,

Can any one please help:

I have a lab design on Visio, with routers and switches.

What I am planning to do is: when I double click a device icon - it should open a new cmd prompt window and automatically performs the telnet session and log's me into the device.

Appreciate your response.