In PowerShell 5.0, when you enter code into the PowerShell console, the tokens get colorized, much similar to the PowerShell ISE interactive console. This colorization is done by a module named "PSReadLine" that ships with PowerShell 5.0. If you don't like the colorization, simply remove the module:
PS> Remove-Module PSReadLine
If you'd like to get the colorization feature in older PowerShell versions, just make sure you installed PowerShellGet (as outlined in the previous tip). Next, download and install PSReadLine:
PS> Install-Module -Name PSReadLine -Scope CurrentUser PS> Import-Module PSReadLine