1 2 3 4 5 6 7 8 |
$resultado = "" $expre = "1..5 | % {notepad}" for($i=0; $i -lt $expre.Length; $i=$i +1) { [String]$resultado = [String]$resultado + '[Char]'+ [Int]$expre[$i][0] + '+' } $resultado[0..($resultado.Length-2)] -join "" | iex | iex |