Powershell Group By Count Sql Function