Checklist for PowerShell Startup Script Not Working - How to Resolve Windows Activation 502 Bad Gateway Error-Resolve Outlook Version Mismatch on Exchange 2019

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