How to Release a File Lock from a PowerShell Script - Task Scheduler 504 Error Checklist-How to Fix 'Command Not Found' in Command Prompt

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