title: One-liner PowerShell script
body: <p>I've created this basic one-liner PowerShell script which executes if I run the <code>ad</code> cmdlet for AD and then the rest of the query. But trying to run them together in line it only seems to load the cmdlet and doesn't execute the rest of the cmd.</p>
  
  <pre><code>powershell.exe -command "&amp;{Import-Module ActiveDirectory; Get-AdGroup -Server DC.Mydomain.com -filter 'name -eq "xxxx"'| set-Adgroup -Replace @{wWWHomePage='10.24.218.194'}}"
  </code></pre>
  
  <p>Why doesn't it run all together like this?</p>