title: Get-ADUser -Filter {name -like "sakthi*"} -Properties name |select name
body: <p>I want use filter as variable but throws an error 
  can someone help on this</p>
  
  <pre><code>$myvar="test"
  Get-ADUser -Filter {name -like "$myvar"} -Properties name |select name
  </code></pre>