Java While Loop Through Array Powershell Get Childitem Filter