Determine the width of the console

To determine the width of the console in powershell:

$Host.UI.RawUI.WindowSize.Width

To determine the height of the console in powershell:

$Host.UI.RawUI.WindowSize.Height