Match 'Bill to' anywhere in the text and then capture the next non-empty line to use for renaming. It's not perfect, but it does work on all the files this time.
invoice_renamer
Powershell script to rename invoices based on who they're being sent to
Languages
PowerShell
100%