Your Link:
https%3A%2F%2Fdevblogs.microsoft.com%2Fscripting%2Fclosures-in-powershell%2F