How To Use Foreach Loop In Powershell Update