PSCustomObject Nested Values

Hi,

I have a PSCustomOject which has a number of nested values. How do extract the nested values?

 

ID:12345678910
Name:@{name=Test; email=test@email.com;date=01/01/01}
Comment:abcdefg
Info:@{ID=ab123xc; url=http.com}

So it would be something like Name.Name, Name.Email ,Comment etc.

Thanks

Ah, well, it depends a bit on whether those are actual sub-objects or hash tables. If they’re sub-objects, which is a better pattern, then yeah - Name.name, Name.Email, etc.