$wshell = New-Object -ComObject wscript.shell;
$wshell.Exec("info.exe")
Sleep 10
[void]
[System.Reflection.Assembly]::LoadWithPartialName("'System.Windows.Forms")
[System.Windows.Forms.SendKeys]::SendWait("pass")
Создаем для powershell файлик типа бат
start.ps1
Такое будет работать ?
$wshell.Exec("info.exe")
Sleep 10
[void]
[System.Reflection.Assembly]::LoadWithPartialName("'System.Windows.Forms")
[System.Windows.Forms.SendKeys]::SendWait("pass")
Создаем для powershell файлик типа бат
start.ps1
Такое будет работать ?