Here's an example Terminal script on how to deploy PhantomPDF macOS Edition.
echo "your_admin_psw" | sudo -S installer -pkg ~/Downloads/FoxitPhantomPDF310.pkg -target /
Type admin password without the ""
Use the Foxit macOS Customization Wizard tool to inject the license (fpmmkey.text) into the PKG as well as make PhantomPDF the default PDF software. Here's how to do that: macOS Customization Wizard Tool