Unless theres another function that does a full parse through all bags/inventory, the solution is to put the current for statement starting on line 3 in another for statement that tells it to cycle through all the bags?
Thats what I was trying to do, I couldnt figure it out how do that and report what bag its from.
Its not like its an addon running 24/7. I export a list and unload it. It does what I need it to do ¯\_(ツ)_/¯