A script saved to a file to execute in Linux should begin:
Then the next line(s) of the script should be the command line(s) to execute:
echo "$1\n$2\n$3\n" | /path/to/binary/of/script &> /dev/null
That's a text file of two or more lines. The &> redirects standard out and standard error.
Will it work to call the binary directly? Have you tried:
user@host$ /path/to/binary/of/script arg1 arg2 arg3 &> /dev/null
?