Like any other console window, PowerShell has 16 pre-defined colors that you can choose from to set background and foreground color. You can use two different approaches to set the values. Both set the console background color to “Blue”:
$host.UI.RawUI.BackgroundColor = ‘Blue’
[System.Console]::BackgroundColor = ‘Blue’
[System.Console]::BackgroundColor = ‘Blue’
You can enter Clear-Host to have the entire console background repainted.