Fix PowerShell 504 Gateway Timeout When Calling REST API - Find PowerShell Logs in Windows Event Viewer-Windows Security Migration Rollback Steps

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