powershell foreach with if statement