in 'd_script.sh'
#!/bin/sh
for myinput
do
echo $myinput
# your work
done
then type: d_script.sh 'find . -name \*\.bat'
ALTERNATIVE
find . -name \*\.bat |xargs d_script.sh
-----------
when they don't ask you anymore, where they are come from, and they don't tell you anymore, where they go ... you'r getting older !