title: Eliminate the duplicates from the array in powershell script
body: <p><a href="https://i.stack.imgur.com/xEYSj.png" rel="nofollow noreferrer">enter image description here</a>I imported a CSV which has two groups and group members displayed before them. there are duplicate members in both the groups like :
  Group A:</p>
  
  <p>John Harry Berke</p>
  
  <ol>
  <li>John</li>
  <li>Tom</li>
  <li>Hilton</li>
  </ol>
  
  <p>Group B:</p>
  
  <ol>
  <li>John</li>
  <li>Louise</li>
  </ol>
  
  <p>(John is repeated),
  So I did the below code to add all the group members in a array and then print the unique from them but it does not works.The array has repeated names</p>
  
  <pre><code>    $Global:grpmember = @()
      $CSV=Import-Csv -Path "C:\Temp\LicenseCount\Names.csv" -delimiter ","
      $csv | % {
      $grpmember+= $_.GroupMembers
      Write-Host "I am executed"
      }
      $grpmember | Get-Unique -AsString
  </code></pre>
  
  <p>enter image description here</p>