Write-Host cmdlet is used to write customized messages.
In these example, we're see the Write-Host cmdlet in action.
In this example, we'll show a customized message.
Write-Host (2,4,6,8,10,12) -Separator ", -> " -ForegroundColor DarkGreen -BackgroundColor White
You can see the even numbers with separator, in green color and on white background.
2, -> 4, -> 6, -> 8, -> 10, -> 12