Test ISE Copy-ColoredHTML on forum... :)
$host.UI.RawUI.CursorSize = 100
# Set window to as big as possible... :)
$MySize = $Host.UI.RawUI.MaxPhysicalWindowSize
$MySize.Width -= 3
$MySize.Height -= 1
$MyBuffer = $MySize
$MyBuffer.Height = 5000
$Host.UI.RawUI.BufferSize = $MyBuffer
$Host.UI.RawUI.WindowSize = $MySize