Fix Task Scheduler 504 Gateway Timeout Sync Issues - PowerShell 502 Bad Gateway Fix Checklist-How to Resolve Task Scheduler Event Log Hang

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