How to Fix High Memory Usage by Command Prompt (cmd.exe) - PowerShell 502 Bad Gateway Fix Checklist-Azure AD PowerShell Cannot Connect: Solutions

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.