Я хочу вывести много разных цветов переднего плана с одним утверждением.
PS C:\> Write-Host "Red" -ForegroundColor Red
Red
Этот вывод красный.
PS C:\> Write-Host "Blue" -ForegroundColor Blue
Blue
Этот вывод синий.
PS C:\> Write-Host "Red", "Blue" -ForegroundColor Red, Blue
Red Blue
Этот вывод является пурпурным, но я хочу, чтобы цвет был красным для слова красный, а синий - для слова синий с помощью одной команды. Как я могу это сделать?