Optimizing PowerShell Scripts to Reduce High Memory Usage - Fix Windows 10 Error 0xc004c003: Invalid Product Key-How to Resolve 'Port Already Allocated' in Task Scheduler

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.