Elementary Powershell loop with conditions