■ Write-Host 명령에서 -Object/-ForegroundColor/-BackgroundColor/-Separator 스위치를 사용하는 방법을 보여준다.
▶ 실행 명령
1 2 3 4 5 |
$message = @("Hello", "PowerShell", "World") Write-Host -Object $message -ForegroundColor White -BackgroundColor Black -Separator + |