将变量值作为变量名称
$groupnum=@('d1','d2')
$var_mid="groupnum" + $groupnum[0]
New-Variable -Name $var_mid -Value 3
Get-Variable $var_mid
$groupnumd1值为3
$groupnum=@('d1','d2')
$var_mid="groupnum" + $groupnum[0]
New-Variable -Name $var_mid -Value 3
Get-Variable $var_mid
$groupnumd1值为3