title: How do I shutdown, restart, or log off Windows via a bat file?
body: <p>I've been using <a href="https://en.wikipedia.org/wiki/Remote_Desktop_Services#Remote_Desktop_Connection" rel="noreferrer">Remote Desktop Connection</a> to get into a workstation. But in this environment, I cannot use the power options in Start Menu. I need an alternative way to shutdown or restart.</p>
  
  <p>How do I control my computer's power state through the command line?</p>