Fix PowerShell Connection Refused Errors in Scripts - Windows Port in Use: Identify the Process-Resolving Task Scheduler Port Conflicts: A Practical Guide

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