set sh=WScript.CreateObject("WScript.Shell") 
WScript.Sleep 1000 
sh.SendKeys "open 192.168.1.1{ENTER}" 
WScript.Sleep 1000 
sh.SendKeys "root{ENTER}" 
WScript.Sleep 1000 
sh.SendKeys "adminHW{ENTER}" 
WScript.Sleep 1000 
sh.SendKeys "su{ENTER}" 
WScript.Sleep 1000 
sh.SendKeys "shell{ENTER}" 
WScript.Sleep 1000 
sh.SendKeys "restorehwmode.sh" 
WScript.Sleep 10000 
sh.SendKeys "reboot" 
