Audacity by default creates .aup projects, and does not offer destructive auto-export / overwriting of an original file (for instance, a wav file).
Certain DAWs allow to call an external audio editor to modify a sample. The user chooses the .exe file for the "sample editor" they wish to use. Then, the "edit" or equivalent button on the DAW for a certain sample, when clicked, opens the external audio editor with the sample file passed via command line.
Today, it is not possible to integrate Audacity with such DAWs, because of the default behaviour.
Maybe adding a /destructive command line flag?