Lambda Function Using For Loop In Powershell Script To Restart