Learn about Windows PowerShell
Summary: Determine how large your Windows PowerShell console is.
How can I see how large my Windows PowerShell console is?
Access the WindowSize property from the $Host object:
$Host.UI.RawUI.WindowSize.Width
$Host.UI.RawUI.WindowSize.Height
Very helpful. Thanks!
In PowerShell ISE
$psISE.Options.ConsoleTokenColors
Displays color notes - Good to know this
Alternatively in both ISE and PS host
[console]::BufferHeight
[console]::BufferWidth
This should do the job