how to include an environment variable in the launcher?

Starter commands usually aren't evaluated by a shell so environment variable don't get evaluated.

Use

 sh -c '$HOME/Desktop/firefox_test.bash'

or

 sh -c 'xdg-open /home/$LOGNAME/Desktop/firefox_test.html'