Troubleshooting PowerShell Azure AD Connection Failures - Task Scheduler 502 Error: Causes and Fixes-JDK Not Found After Setup: Environment Variable Fix

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