so basically, in your program, listen addonpackages folder, catch the event when new file drops, trigger scan with package manager, read latest output_log.txt file, parse that file to spot missing packages, give that as an input to the rest of your code - and you are done i guess?