Bit Rate app

I wanted to make an app to display the bit rate of an audio file. I can get automator to pass the list of selected files. I can get the file name printed. I cannot get the bit rate or display it. I also would like to have a window pop up with the results. Not sure what to do there, haven’t gotten that far.
Here is the script in the do shell script part:

#! /bin/bash
cat
for FILE1 in “$@”
do
FN="${FILE1##/}"
#echo $FILE1 | sed 's/^.
//’
BR=$(afinfo $FILE1 | grep “bit rate”)
echo -e $FN “\t” $BR
done

HELP please.