Use Of Foreach Loop In Powershell Activate