Fix 'File in Use by Another Process' Error in PowerShell - Running .ps1 Scripts on Mac with PowerShell Core-Enable Windows Update Service When Disabled by Group Policy

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