I am returning the array in Powershell. But in response, I am getting array values along with the indexes of the respective values.
How I can stop the item index from printing in the console.
Code Example:
$data = [System.Collections.ArrayList]@()
$Item1 = "vimal" +"::"+ "error1"
$data.add($Item1)
$Item1 = "vimal" +"::"+ "error2"
$data.add($Item1)
return $data
Response:
0 1 vimal::error1 vimal::error2
I don't want to print 0 and 1 in the console.
Thanks, Vimal