1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
$operaciones = Import-Csv .\operaciones.txt -Delimiter ";" foreach($operacion in $operaciones) { if($operacion.OPERACION -eq "arrancar") { Start-Process $operacion.PARAMETRO } elseif($operacion.OPERACION -eq "verinfo") { Get-Process $operacion.PARAMETRO } elseif($operacion.OPERACION -eq "matar") { Stop-Process -name $operacion.PARAMETRO } } |