Fix Windows Terminal Access Denied Error Code 5 - Enterprise Windows Defender Configuration Guide-Saving Command Prompt Output to a Log File

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