title: Adding Active Directory group with spaces in name gives error in PowerShell script
body: <p>I have following command to add AD group in PowerShell script but AD group has space in name and that is causing an issue.</p>
  
  <pre><code>Set-Variable -Name APP_GROUP -Value My AD Group
  Add-LocalGroupMember -Group "Administrators" -Member "MyDomain\"$APP_GROUP
  </code></pre>
  
  <blockquote>
    <p>Error: CategoryInfo: NotSpecified: RemoteException<br>
    + FullyQualifiedErrorId : NativeCommandError</p>
  </blockquote>