A parameter cannot be found that matches parameter name 'TokenKind'
They made a breaking change PSReadline V2, read about it here: https://github.com/lzybkr/PSReadLine/issues/738
So instead of
Set-PSReadlineOption -TokenKind String -ForegroundColor MagentaSet-PSReadlineOption -TokenKind Variable -ForegroundColor Cyan
You would do something like
$colors = @{}$colors['String'] = [System.ConsoleColor]::Magenta$colors['Variable'] = [System.ConsoleColor]::CyanSet-PSReadLineOption -Colors $colors
I think there is a way to specify foreground/background color in the hashtable as well, but haven't figured out yet.
Read the Set-PSReadLineOption doc here.