You can give your system a "mini-reset" with Task Scheduler every time you log in. This can help you clear temporary files, ...
Dot sourcing can simplify large PowerShell scripts -- but without a clear structure, it can quickly lead to chaos.