An example, change it how you want.
Code:
#! /usr/bin/env bash
cmdfu(){
curl "http://www.commandlinefu.com/commands/matching/$@/$(echo -n $@ | openssl base64)/plaintext";
}
clear
OPTIONS="Search Quit"
echo "Search http://www.commandlinefu.com from shell"
echo "Press Enter at any time to return to menu."
echo "Select an option:"
select opt in $OPTIONS; do
if [ "$opt" = "Quit" ]; then
clear
exit
elif [ "$opt" = "Search" ]; then
echo "Enter search word;"
read search
cmdfu "$search"
else
echo bad option
fi
done