Fix 'java' Not Recognized in Command Prompt on Windows - Windows Stuck in Login Loop After Using Command Prompt-How to Turn On Windows Defender from Command Line

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