op_Addition to session variable array

I’ve found a solution by using PSObjects instead of hashtables and declaring the variable as array for each op_addition:

$session:namesList = @()
[array]$session:namesList += New-Object PSObject -Property @{ Givename = (Get-UDElement -Id "Givename").value; Surname = (Get-UDElement -Id "Surname").value}
3 Likes