Powershell Loop Through String In Java