Powershell Garbage Collection
You might think PowerShell is a simple high level scripting language so who cares about low level things like garbage collection?!? You would be mostly right, I have a complex script that processes alot of data, creates and destroys a lot of variables. How do you address it when you create and destroy lots of data in memory? Add in the following line after Remove-Variable and clearing up memory add in the following line to kick off a garbage collection Now after the process use to fall over, it is now using way less memory.