I would like to make a macro for audio export

If you mean you want to know which key command to use:
Edit / Key Commands / Audio Export / Perform Audio Export
The Export Audio Mixdown window has to be open at the time you use this key command.