I have a custom object where I have added properties of a variable to it directly but there is one property with holds multiple values . How do I add all those multiple values to my custom object ?
This works fine if there is one-one value
$info | Add-Member -Type NoteProperty -Name "USEDSPACE %" -Value $usage
but in this case $result.name isnt working , where $result.name has a set of values not one
$info | Add-Member -Type NoteProperty -Name PATHS -Value $result.name