Fix PowerShell Remote Connection Refused Error - Microsoft Store 502 Bad Gateway: Troubleshooting Checklist-Fix 502 Bad Gateway from Command Line

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