Fix PowerShell Connection Refused Errors in Scripts - How to Reset Microsoft Store Cache in Windows 10/11-Microsoft Teams 502 Error Windows 11 Troubleshooting

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