title: query sql database via powershell - select distinct not returning values
body: <p>I'm hoping someone has a quick answer for this as I cannot find much online.</p>
  
  <p>I am executing a sql command remotely via powershell. I have the script and it works but if I try a "select customer from customertable' it returns the values fine. if I run the query 'select distinct....' it returns no values.</p>
  
  <p>Can the distinct command be run via powershell?</p>