Junte duas hashtables para criar uma

Eu tenho duas tabelas de hash e preciso compará-las. Deixe-me explicar meu problema:

[hashtable]$User = @{
"Jack" = "AdminLA, AdminUSA";
"John" = "AdminAustralia";
"Sarah" = "AdminIceland";
"Arnold" = "AdminUSA";
"Maurice" = "AdminAustralia, AdminCanada";
}


[hashtable]$Profil = @{
"AdminLA" = "P1";
"AdminIceland" = "P2";
"AdminUSA" = "P3";
"AdminCanada" = "P4";
"AdminAustralia" = "P5" ;
"AdminCroatia" = "P6";
}

Eu quero ter esse tipo de resultado:

Key         Value
---         -----
Jack        P1, P3
John        P5
Sarah       P2
Arnold      P3
Maurice       P5, P4

Na verdade, tenho apenas um valor (não consegui ter vários valores. Por exemplo, Jack deve ter P1 e P3 e eu tenho apenas P1).

Como posso corrigir isso?

Eu já tentei:

$User.GetEnumerator() | select Key, @{n='Value'; e={$Profil[$_.Value]}}

e

$User.GetEnumerator() | %{[PSCustomObject]@{aKey=$_.Key;bValue=$Profil[$_.Value]}}

Qualquer ideia?

questionAnswers(1)

yourAnswerToTheQuestion