Exporting entire project with reference link updates

We have a project where we want to export from PW to a file system, and rewrite the reference links to be maintained within that file system. We have attempted to use Send-to with the "Update documents to use local paths for references and links" toggle checked. However, it does not correctly update the links to references in other folders. We also tried to run the Import/Export wizard. While this does update the reference links correctly, it does not export all folders and substructure within some folders. For example, this is a 84GB project, 24GB did not export, and some folders merely contained PDFs. We are quickly running out of options. Can a PowerShell cmdlet accomplish this goal?