If you want to set the foreground and background color of the output in Power Shell, then you can use the below lines.
> $bcolor = @{foreground="red";background="black"} > write-host @bcolor "Hello World!"
The above two lines will set the output foreground as red and the background as black.
Basically, you can set other elements of the Power Shell output as well with the above technique!