From 95e844923ecf2ec18c100127892a29a1177e292d Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Sun, 1 Feb 2026 13:40:22 +0100 Subject: [PATCH] Minimize the powershell window when no parameters are provided --- Get.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Get.ps1 b/Get.ps1 index eef4779..745e79b 100644 --- a/Get.ps1 +++ b/Get.ps1 @@ -140,10 +140,11 @@ $arguments = $($PSBoundParameters.GetEnumerator() | ForEach-Object { Write-Output "" Write-Output "> Running Win11Debloat..." -# Minimize the powershell window when CLI is not specified -if (-not $CLI) { +# Minimize the powershell window when no parameters are provided +if ($arguments.Count -eq 0) { $windowStyle = "Minimized" -} else { +} +else { $windowStyle = "Normal" }