How can you test if an object has a specific property?
Appreciate I can do ...
$members = Get-Member -InputObject $myobject
and th
You could check with:
($Member.PropertyNames -contains "Name") this will check for the Named property
($Member.PropertyNames -contains "Name")