Fix PowerShell Startup Error: Missing .NET Framework - PowerShell 502 Bad Gateway Error Fix-Task Scheduler Connection Refused with Service Account – How to 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.