Fix 'Access Denied' When Running PowerShell Scripts - OneDrive Sync Error 504 Troubleshooting Guide-How to Fix PowerShell High Memory Usage

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