For a recent customer case, we needed a meta-data export of ALL files in the entire O365 tenant, filenames, dates, modifications, sizes and unique ID’s.
It is tricky to actually get everything (Teams especially) and to handle any MFA you may (SHOULD!!) have configured on your admin accounts, but here you are:
Note that your admin account does have to have permissions on all sources the script identifies.
Can you provide an example of the -specificSiteUrls? This for example https://TEANTNAME.sharepoint.com/sites/teamsite1 seems to be ignored.