Код: Выделить всё
$app = Start-Process notepad.exe -PassThru
sleep 1
$hndl = $app.MainWindowHandle
# Move notepad window to desktop №2
[DesktopManager]::MoveToDesktop($hndl, 2) # True
# Get the number of desktop, where the app is located now
[DesktopManager]::GetDesktopWindow($hndl) # 2
#etc...
Также я нашел это...
Подробнее здесь: https://stackoverflow.com/questions/651 ... n-desktops
Мобильная версия