. , , , , - . :
if( $Host -and $Host.UI -and $Host.UI.RawUI ) {
$rawUI = $Host.UI.RawUI
$oldSize = $rawUI.BufferSize
$typeName = $oldSize.GetType( ).FullName
$newSize = New-Object $typeName (500, $oldSize.Height)
$rawUI.BufferSize = $newSize
}
500 RawUI (, , , script , , ).
, RawUI ( ), :
$Host.UI.RawUI.BufferSize = New-Object Management.Automation.Host.Size (500, 25)