Optimizing PowerShell Scripts to Reduce High Memory Usage - PowerShell Slow After Update? Try These Fixes-Windows Terminal Profile Not Loading? Here's the Fix

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