Hi,
I have a Powershell object Selected.System.Management.Automation.PSCustomObject
to which I would like to add a noteproperty so I can populate it with a foreach
F.e. customobject is fruits
it has noteproperties colour,weight
In another script I d like to add taste noteproperty
How can I do this?
Tried
$Fruits | Add-Member -MemberType NoteProperty -Name Taste -Value VeryGood -Force but then it adds everywhere test wheras I just need the extra Taste.
Please advise
J.
Is there a difference between "Taste" and "extra Taste"?