title: cannot run powershell script with pywinrm
body: <p>Here we can see examples:
  <a href="https://github.com/diyan/pywinrm" rel="nofollow noreferrer">https://github.com/diyan/pywinrm</a>
  how to control windows through pywinrm and powershell script
  it's work.</p>
  
  <p>but in case</p>
  
  <pre><code>ps_script = """$strComputer = $Host
  [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Python27\Scripts", [EnvironmentVariableTarget]::Machine)
  Restart-Computer 
  """
  </code></pre>
  
  <p>it add python to the PATH, but don't restart Windows.</p>
  
  <p>in case </p>
  
  <pre><code>ps_script = """Write-Host "hello"
      """
  </code></pre>
  
  <p>i see "hello" in terminal of my machine, not remote.</p>
  
  <p>what is wrong?</p>