script to non interactive mode

Gud morning everybody,

I need small help form you people,Please advice me.

I have a utility(adpatch) which takes 10-15 prompts, i want to automate this by calling this utility in shell script. Now my qiestion i want to run the script in non interactive mode.

An example.

$adpatch
is this correct DB: YES
is this correct apple top: YES
give system password: WHATEVER
.
.
.
.
.
### The capital one are words i need to give when utility prompts.

Now: if say patching.sh, it should run normally without any prompts.

Thans,
Swetha.

printf "%s\n" YES YES WHATEVER ... ... | adpatch