AutoCAD patches will not install from command line, only via GUI. This because they have a script that runs on launch of the .pkg (via GUI) that locates the base .app that needs to be upgraded, and then creates a symlink to that .app in /tmp.
This updated "fixes" this issue with the usual trickery.
+ Added a check to verify and create the `licenses` folder if it doesn't exist -- popped up with R2021a
+ Setting file permissions
+ Updated style and other improvements
+ Fixed the `sdkmanager --install` logic
+ Verifying if `sdkmanager --install` & `sdkmanager --update` are successful
+ Adjusted case-sensing logic for some passed parameters
+ Added a "default" LaunchAgent label value in case one is not passed
+ Updated to include "ongoing maintenance" functionality
+ Configured to pass parameters to the script instead of being included in the install .pkg (e.g. in a Jamf Pro environment)
+ Will now agree to licenses
+ Ability to install SDK components
+ Ability to update already installed SDK components
+ Fixed one if comparison statement
+ Adding a tag to track if device is running Mojave, this will be used, with additional logic, to prevent devices that upgrade from Mojave -> Big Sur from auto-upgrading its Falcon Sensor
+ Switched osascript calls to use System Events and passing via heredoc
+ Added "instance" variable for use to designate "prod" vs "dev" instances
- Removed the `Reset` action option -- provides duplicate functionality as just passing `production` as a group
+ Fixed some bugs due to the order of logic
+ Fixed some stderr issues to properly collect now
+ Added a catch to not error out incase a maintenance token is applied
+ Added support to re-run the script without erasing current sensor version test group tag, this for in instances where the script is not run via Self Service and a forced group is not used
+ Added new action option to force reset the sensor version test group tag
+ Added error dialog boxes to user with ran via Self Service
+ Updated exit code values
+ Updated logic for local license to utilize new licensing method....guess I failed to test this previously?
+ Tweaked method for "removing" local license if network license is used
+ Updated to support SPSS v27
+ Using expected process in v27 for configuring license manager via CLI
+ Improved conditional logic and error processing
+ Improved exit logic