I don't think you can just run DOS program like that over the Internet, as you've found out. I have seen DOS type programs run in Java Sun console, but having never programed script for Java Sun I'm not sure. Maybe worth a look though.
Huawei P10 review
1995-2015: How technology has changed the world in 20 years
An overview: What leading creative agencies are doing to improve diversity
New iPad, iPhone SE & Red iPhone 7 on sale now
Synology invites you to visit them at Insomnia on 26th – 29th August. Book your tickets now and visit Synology.