Font color is termed as the Foreground color in the PowerShell. To change the font color you can use the console GUI property “Screen Text”. There are various 16 colors available and you can change RGB properties as well.
To change the color with the script, use the below command.
$Host.UI.RawUI.ForegroundColor = "Yellow"
You can see the immediate change in the Foreground color.