Fix PowerShell 502 Bad Gateway Certificate Errors - Resolving Invoke-Command Timeout Errors in PowerShell-Missing Windows Defender After Update: Troubleshooting Guide

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