Check Which Process Locked a File Using PowerShell - Fix pnpm Store Permission Denied on Mac-Task Scheduler 504 Timeout: Causes and Fixes

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