1 2 3 4 5 6 7 8 9 |
function mostrar ($nombre,$where,$seleccionar,$fichero) { #$nombre,$where,$seleccionar,$fichero Get-Process -name $nombre | where cpu -gt 0 | select $seleccionar | Out-File fichero.txt } $elementos = Import-Csv .\informacion.txt mostrar $elementos.nombre $elementos.where $elementos.seleccionar $elementos.fichero |