From 95e059650dabd923067503e170abd6a3e6675c61 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Sun, 26 Sep 2021 01:38:07 +0300 Subject: [PATCH] Update Download_Sophia.ps1 --- Download_Sophia.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Download_Sophia.ps1 b/Download_Sophia.ps1 index c1262498..c8e1a3a3 100644 --- a/Download_Sophia.ps1 +++ b/Download_Sophia.ps1 @@ -143,7 +143,7 @@ if (-not ("WinAPI.ForegroundWindow" -as [type])) Add-Type @SetForegroundWindow } -Get-Process- Name explorer | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script v"} | ForEach-Object -Process { +Get-Process -Name explorer | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script v"} | ForEach-Object -Process { # Show window, if minimized [WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 5)