Puedes manejar un array indexado y con el foreach ir recorriendo cara index para mostrar su valor. Por ejemplo:
O usar HashTable
:https://www.maquinasvirtuales.eu/curso-basico-de-powershell-arrays-y-hashtables/
Código (powershell) [Seleccionar]
$array = 1,2,3,4,5
foreach (item in $array) { $item }
O usar HashTable
Código (powershell) [Seleccionar]
$hash = @{Clave=Valor; Clave2=Valor2; Clave3=Valor3}
$hash = [Ordered]@{Clave=Valor; Clave2=Valor2; Clave3=Valor3}
:https://www.maquinasvirtuales.eu/curso-basico-de-powershell-arrays-y-hashtables/