The script installPKGfromDMG.sh no longer works due to JAMF removing the install verb from the jamf binary.
This repo below has expanded on the script and does work using the system's installer binary.
https://github.com/blakeusblade/Jamf-Nation-Scripts/blob/master/InstallPKGFromDMG/installPKGsfromDMG_v5.0.sh