Right now, the inventory task ends with a clearing of the task file and a reboot. If you want to perform an inventory and then do more stuff, I think you’ll have to modify that behavior without interfering with the rest of the tasks that call the inventory scripts.