Fix PowerShell Authentication Token Expired in Automation Scripts - Fix Windows Security Virus Scan Stuck at 99%-OneDrive File Locked: Quick Troubleshooting Steps

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