Fixed read invocation for running the script from a PIPE