# Foreach where with two arguments

Hi people,

Someone know how insert two arguments where at the end of the foreach below? If variable \$.Sinal is 0 (zero) the message is fiber cut, if \$.Sinal is 2 the message is Poweroff.

``` \$i=0

\$Sinalcli = (\$column1,\$column2)[1]|

foreach {

new-object psobject -property @{

Sinal = \$Column1[\$i]

Cliente = \$column2[\$i++]

}

} | where Sinal -EQ 0 | %{write-output "[ONU: \$(\$_.Cliente) STATUS: Fiber Cut]"} | -EQ 2 | %{write-output "[ONU: \$(\$_.Cliente) STATUS: Poweroff]"} |sort

```

Many thanks for any help.