diff --git a/RemoveWindowsAi.ps1 b/RemoveWindowsAi.ps1 index 7ea6c04..2e07a22 100644 --- a/RemoveWindowsAi.ps1 +++ b/RemoveWindowsAi.ps1 @@ -2174,7 +2174,9 @@ if ($ogExecutionPolicy) { Reg.exe add 'HKLM\SOFTWARE\Policies\Microsoft\Windows\PowerShell' /v 'ExecutionPolicy' /t REG_SZ /d $ogExecutionPolicy /f >$null } +if (!$nonInteractive) { + Write-Host 'Done! Press Any Key to Exit...' -ForegroundColor Green + $Host.UI.RawUI.ReadKey() *>$null +} -Write-Host 'Done! Press Any Key to Exit...' -ForegroundColor Green -$Host.UI.RawUI.ReadKey() *>$null exit \ No newline at end of file