New get documents inventory script