Sorry for necrobumping, but I did some research and putting the following:
//usr/bin/env root -l $0; exit $?
at the top of my ROOT macros works for me. I’m not 100% sure about portability though, I just tested it on my Linux machine. Could you check?