Bash Loop Through Array Powershell Script Generator Copy