But with Start-Assignment you can assign the list of objects to a variable or a global assignment store and dispose when no longer needed.
There are three assignment levels.
- No assignment - where the object is not assigned to a object and is disposed after each iteration of the command.
- Simple assignment - This is done by using the global parameter. All objects are assigned to a global assignment store and released by calling the Stop-SPAssignment cmdlet.
- Advanced assignment - Objects are assigned to a named store and released by using the StopAssignment with -identity parameter.