How to Fix Command Prompt Keeps Crashing in Windows 10 - Command Prompt Opens to Blank Screen – Troubleshooting-Troubleshoot 502 Bad Gateway Error Post-Reboot

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