1 2 3 4 5 6 7 8 9 |
echo "ps @notepad" > fichero echo "ps @notepad" >> fichero Get-Content .\fichero foreach($linea in Get-Content .\fichero) { $ejecutar = $linea.split("@")[0] + $linea.split("@")[1] $ejecutar + " | select threads" | iex } |