Optimize PowerShell Scripting Performance: Practical Tips - Fix Windows Terminal Port Conflicts-Fix 502 Bad Gateway Error in Windows Command Prompt

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.