Optimize Slow PowerShell Script Execution: Practical Fixes - Resolve Port Already in Use Error in VS Code-Fix Teams Stuck on Loading Screen Loop

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.