Single quotes are used within the shell and within the scripts to turn off the meaning of special characters, including spaces. A dollar sign ($) will normally be interpreted as a dollar sign, not the content of the variable following that $ sign.
For example,
sh_prompt VARI=me
sh_prompt echo $VARI
sh_prompt me
sh_prompt echo '$VARI'
sh_prompt $VARI