How to Enable Windows Defender via Command Prompt - Bypass 502 Gateway Error in PowerShell-Enable Windows Defender Threat Service Automatic Start

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