Foreach Loop Through Array Powershell Script Extension