Another thing you can consider is using the "Install Mapped Software" action.
You can create a "Product" based on a query, and if the computer matches that query, it can include your desired installation based on that query.
How to configure Product to Package Mapping and install Mapped Software
- This new feature allows previously installed software to be reinstalled on a re-imaged computer by mapping monitored products to packages.
- Used for OS migration on same hardware.