I like to have a 2x2 grid of powershell windows open on my alternate monitor, but I'd prefer not to have to open and resize each one by hand. I can set the window size (through (Get-Host).UI.RawUI.WindowSize), but it appears that (Get-Host).UI.RawUI.WindowPosition is actually the scroll position within the buffer.
Does anyone know of any way to do this through PS scripting, or, failing that, through the Windows Scripting Host?
Add-Typeto access some Windows API functions via C# to achieve that. – Joey Jun 30 '10 at 15:50