Create a separate pre-install script that that will use the Curl command to download the "Cb Defense Install.pkg" to the location referenced in the "cbdefense_install_unattended.sh". Example of script to that will download Cb Defense Installer to the /tmp directory of a client:
#This script will pull the CbDefenseInstaller.pkg from an AWS S3 bucket or other network location and download it to the /tmp/ directory on a macOS client machine.
#The file will need to be public for this command to function (See AWS documentation if Authentication is required).
#The command option is the letter "O" rather than the number "0"
curl -O (URL to File goes here) -O /tmp/
Upload Installer and Scripts to Jamf Cloud
Upload the installer to Jamf Cloud by navigating in Jamf to All Settings > Computer Management > Packages
If using an AWS S3 Bucket, log in the AWS management instance and navigate to AWS > S3 > S3 Bucket > File > Actions > Make Public to make the package available
Upload both the Pre-install script and the "cbdefense_install_unattended.sh" file to Jamf Cloud under All Settings > Computer Management > Scripts