I am new to Powershell and there seems to be an easy way to do everything, I just can't find this. I have a loop that it is calculating some values and each time through the loop I would like to append those variables to a comma delimited file so the results can be easily viewed.
Below is the example loop that I came up with andI would like to write $i and $a and $b to file each way.
for ( $i = 1; $i -le 5; $i+=1 )
$A ="Result $i"
$B = 2 * $i
Thanks in advance.