title: Powershell NAS command not working
body: <p>I am trying to get NAS drive parameters using PS commands.  The below command, however, is not getting any value when called via Python code by connecting to remote server. However, if I run it by copy-pasting into that remote server it gives output.</p>
  
  <pre><code>$nas = Get-PSDrive | Where-Object {$_.DisplayRoot -like '*jkl.com*'}
  write-host $nas
  </code></pre>
  
  <p>No error and no output when run through Python code.</p>