Fix 'PowerShell Not Recognized as Internal or External Command' - Fix Windows Defender 502 Bad Gateway Error During Setup-PowerShell Logging Not Working? Common Fixes

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