Fix Windows Security High CPU Usage on Windows 11 - Fix PowerShell Memory Leak and High RAM Usage-Troubleshoot 502 Bad Gateway in Remote Desktop

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