title: Escape ActiveDirectory attributes with special character
body: <p>I am trying to query AD for a list of users and a particular variable like so:</p>
  
  <pre><code>get-aduser -filter * -Properties * | select Samaccountname,vasco-LinkUserToDPToken | Export-Csv U:\test.csv -NoTypeInformation
  </code></pre>
  
  <p>However this returns the samaccountname and Microsoft.ActiveDirectory.Management.ADPropertyValueCollection.</p>
  
  <p>Looking at the web I have ascertained that this property is a collection and I would need something along the lines of this to expand it and allow it to be exported to CSV:</p>
  
  <pre><code>get-aduser -filter * -Properties * | select @{name="vasco";expression={$_.vasco-LinkUserToDPToken -join}},samaccountname | Export-Csv U:\test.csv -NoTypeInformation
  </code></pre>
  
  <p>However I keep getting the following error:</p>
  
  <pre><code> Unexpected token '-LinkUserToDPToken' in expression or statement.
  </code></pre>
  
  <p>I am guessing that powershell is reading the "-" as some form of operator and dooming out.  Unfortunately I cant find a way round it.  I understand ` is the escape character but my blunt force usage of it has yielded no useable results.  I was hoping someone might be able to help usher me in the right direction.  It could well be that my frantic blog post reading has led to me misunderstanding the hash table usage syntax as well...</p>