Search notes:

Powershell module console: set-consolePaletteColor

Set the color of an entry of the console color palette (as ordered in the properties dialog of conhost.exe).
The function get-paletteIndexOfConsoleColor turns an entry of the System.ConsoleColor enum into the index number of this (dialog-) palette.
The value of the first parameter must be between 0 and 15.
$paletteIndex =   4
$r            = 197
$g            =  15
$b            =  31

set-consolePaletteColor $paletteIndex  $r $g  $b

See also

This function is found in the PowerShell module console.

Index