Write-Host "Checking for required PowerShell modules..." $modules = @( "posh-git", "Profiler", "PSFzf", "PSProfiler", "PSScriptAnalyzer", "Terminal-Icons", ) foreach ($mod in $modules) { if (-not (Get-Module -ListAvailable -Name $mod)) { Write-Host "Installing $mod..." Install-Module $mod -Scope CurrentUser -Force -AllowClobber } else { Write-Host "$mod is already installed." } }