I am reading data from a parameter file such that I am reading a key and value pair. When finished, one group of values I have in PowerShell is something like:
$STRING1 = GetParameterValue $PARMS "KEY1" -- $PARMS is an array of key/value pairs
$STRING2 = GetParameterValue $PARMS "KEY2"
What I want to end up with is an array (e.g. $Strings) so that I can do something like:
foreach($s in $Strings)
What is the best way to get a group of individual string values into the array?