I like to use calibredb for that
https://manual.calibre-ebook.com/gen...calibredb.html
For example, this writes all the azw3 files (just the .azw3) to a single directory with file names by author | series if any | title
calibredb export --all --dont-save-cover --dont-write-opf --format azw3 --single-dir --template "{authors}-{series}{series_index:0>2s|[|]-}{title}"" --to-dir <destination>