Fix PowerShell 504 Gateway Timeout Error - Troubleshoot Activation-Related High Memory in Safe Mode-Access Denied in Task Scheduler: How to Fix

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