passing pipe as argument function code example
Example: use pipe output as argument
Try to write your pipe command with following structure´s principle:
./Myscript.sh "$(cat text.txt)"
So that your pipe output is generated in an intrinsic $(pipe_output).