I can restore, minimize, maximize windows like that: $hwnd=(Get-Process notepad).MainWindowHandle [Win32.NativeMethods]::ShowWindowAsync($hwnd, 4)...

read more