Passing screen value to a program

Hi all,

I have the following question. Apparently not very difficult, but I'm not any expert.
I have a program, let's say program.x, and a bash script that execute it, let's say program.sh. When the program executes it asks for a value to continue. What I want is just passing the value throw the script execution (e.g. using $1) , just

>program.sh value

and a line of the script gives the order of passing that value to the screen when the program ask for it. Which would be that line? Thanks in advance

printf "%s\n" "$1" | program.x

Great!, it works, thanks a lot

J