I'd like to be able to do something like This except -AddColumn is fictitious syntaxe :
Import-Csv in.csv -header Date,Time,O,H,L,C,V|select * -AddColumn median %{$_.median=($_.H + $_.L)/2}
What would be the real syntax or how to do it the easiest way ?
data file :
2015.08.09,20:45,1.09538,1.09546,1.09522,1.09524,74
2015.08.09,20:50,1.09523,1.09537,1.09505,1.09523,110
2015.08.09,20:55,1.09524,1.09546,1.09520,1.09526,165
2015.08.09,21:00,1.09526,1.09526,1.09495,1.09497,141