Macro for Exporting Each Track as a seperate File and unique name

I’m trying to create a macro that will cycle through project, focus on each track, solo, then export to a folder with the name of the project + focus track name as the file name. Is this possible? I was able to get as far as focus on the track, solo, and then export2 which requires a full file name be typed in rather than pulling that name from some where.

Why not use Export Multiple and select the option to export by tracks (and not labels).

See: https://manual.audacityteam.org/man/export_multiple.html

Peter.