I’m comparing 2 csv by compare-object selecting 2 properties (fields in my csv) that interest me so like
$test = compare-object $a $b -property x,y -passthrugh$test | foreach {
if($_.sideindicator -eq ‘<=’){
$.sideindicator = $.y
}
However, rather then getting the value for the found difference I get a whole hashtable containing the corresponding row in place of the sideindicator. When I run get-member against that new sideindicator value I see TypeName: Selected.System.Management.Automation.PSCustomObject. How do I get my value then?