How to Fix Command Prompt File Locked Error in Windows 10 - Resolve PowerShell Permission Denied at Launch-How to Fix PowerShell Not Working After Update

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