1 2 3 4 5 6 7 | function mostrar() { Param([Parameter(ValueFromPipeline)]$nombre) Write-Host $nombre } "hola" | mostrar |
1 2 3 4 5 6 7 | function mostrar() { Param([Parameter(ValueFromPipeline)]$nombre) Write-Host $nombre } "hola" | mostrar |