Fix 'PowerShell Not Recognized as Internal or External Command' - How to Fix Access Denied in Windows Activation Command-PowerShell 504 Gateway Timeout: Diagnosis and Resolution 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.