Fix 'Not Recognized as Internal or External Command' Error - Task Scheduler Fails at Startup Due to UAC-Fixing Windows Security 502 Bad Gateway Errors

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