Optimize Slow PowerShell Script Execution: Practical Fixes - Resolve 'Connection Refused' Error on Windows 10-Diagnose and Fix Command Prompt High CPU

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