我想在具有多个参数的多个窗口中启动一个 powershell 脚本
foreach($Instance in $config){
$MaxSamples = $UserInput.MaxSamples
$SampleInterval = $UserInput.SampleInterval
$instance = $Instance
cmd /c start powershell -NoExit -Command {.\sqlcounters.ps1 $instance $SampleInterval $MaxSamples $OutputDirectory $Instance_$MaxSamples_iterations_with_db}
}
有人可以建议如何指定多个参数