Run a Single PowerShell Script Without Changing Execution Policy - Azure Function 504 Timeout Fix for PowerShell Scripts-Task Scheduler 504 Error Checklist

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