I'm trying to send parameters to the PowerShell script using pipes.
If I use standard function 5 | echo everything is ok. But when I replace standard echo with my script myecho.ps1 5 | myecho.ps1 no results are shown.
This is myecho.ps1 script.
param([string]$str)
echo $str
How can I send parameters to myecho.ps1 script using pipes?