Hello @gx
The powershell paletter by command line may not work in the same way.
For example:
https://learn.microsoft.com/en-us/powershell/module/psreadline/set-psreadlineoption?view=powershell-5.1 < Customizes the behavior of command line editing
https://learn.microsoft.com/en-us/powershell/module/psreadline/get-psreadlineoption?view=powershell-5.1 < Gets values for the options that can be configured.
Additionally for console, you can use a format like this:
$console = $host.ui.rawui
$console.backgroundcolor = "black"
$console.foregroundcolor = "white"
$colors = $host.privatedata
$colors.verbosebackgroundcolor = "Magenta"
$colors.verboseforegroundcolor = "Green"
$colors.warningbackgroundcolor = "Red"
$colors.warningforegroundcolor = "white"
$colors.ErrorBackgroundColor = "DarkCyan"
$colors.ErrorForegroundColor = "Yellow"
set-location C:\
clear-host
Reference for color names: https://learn.microsoft.com/en-us/dotnet/api/system.console.foregroundcolor?view=net-6.0
Hope this helps with your query,
------------
--If the reply is helpful, please Upvote and Accept as answer--