You gviegive some option to your script, but you never pass it on to cowsay.
To do that, use
fortune | cowsay "$@"
in your script. The "$@" will expand to the list of command line arguments that your script was given, for example the option -d, if that was what you invoked your script with.