How to Release a File Lock from a PowerShell Script - Fix Slow PowerShell Command Response-Lower RDP Memory Consumption Settings

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