Fix PowerShell Login Loop Error 0x80070002 - SQL Server Connection Refused in Scheduled Tasks-Resolve Port Already in Use via CMD

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