Read Data from Invoice and load into a database or excel

I am getting this error and i am using service account as facing difficult to setup auth account, Google Drive Error : Cannot read properties of undefined (reading 'pipe')


Sorry for the inconvenience, i have been trying to fix it but unable to do it