Fix 'Path Not Found' Error in Windows Terminal for Command Prompt - Configuring Windows Terminal for Development Workflows-Resolve cmd.exe 0xc0000142 Error on Windows 10

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