Fix PowerShell Cannot Connect to SharePoint Online Setup - How to Fix PowerShell Invoke-WebRequest 504 Gateway Timeout-BitLocker Encryption Paused: Fix Guide

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