Make FIFOs (named pipes). More information: https://www.gnu.org/software/coreutils/mkfifo.
mkfifo path/to/pipe
echo "Hello World" > path/to/pipe &
cat path/to/pipe
mkfifo path/to/pipe; script -f path/to/pipe