Function Set-WindowSize { Param([int]$width=$host.ui.rawui.windowsize.width, [int]$height=$host.ui.rawui.windowsize.height) $size=New-Object System.Management.Automation.Host.Size($width,$height) $host.ui.rawui.WindowSize=$size }