I am trying to take multiple number input by user separated by comma and storing it into an array. After that trying to convert the value using convert CSV but not getting fruitful result. May be I am doing some conceptual mistakes. Can you please rectify me.
$arr = @() $arr = Read-Host " Please input numbers" |ConvertTo-Csv -Delimiter ","The output I am getting if I input 10,20,30.
PS C:\windows\system32> $arr #TYPE System.String "Length" "8"Need your support.