Powershell Create Hash Table From Foreach Javascript