Powershell Loop Through String Java