title: Powershell command alternative to Telnet for managing router
body: <ol>
  <li><p>I need to reboot my wireless router (ZyXEL P-660HN-T1A) at a scheduled time (using task scheduler in Windows 7).</p></li>
  <li><p>The live and manual <strong>telnet</strong> command-line version to the task above is this:</p>
  
  <pre><code>telnet 192.168.1.1
  password: **********
  sys reboot
  exit
  </code></pre></li>
  <li><p>Now I want alternatively to use <strong>Powershell</strong> to automate and script (using probably TcpClient) the above commands and then run that script at the required time with Windows Task Scheduler.</p></li>
  </ol>