I hope you have a bunch of files present in a folder and retrieving that using below syntax: FilePaths = Directory.GetFiles("C:\Users\"+Environment.UserName+"\Documents\UiPath\Document Understanding using ML\Invoices")
You will be running a For Each loop for FilePaths(Array[]) and pass the currentText in Digitize Document activity. This should sort the issue.