Powershell Group By Count Sql Syntax Error