Powershell Loop Through Array And String In Java