The script is calling this function to do it:
remove_commercial_modules() {
comm_modules=$(fwconsole ma list | grep Commercial | awk '{print $2}')
echo "$comm_modules" | xargs -I {} fwconsole ma -f uninstall {} >> "$log"
echo "$comm_modules" | xargs -I {} fwconsole ma remove {} >> "$log"
# Remove firewall module also because it depends on commercial sysadmin module
fwconsole ma uninstall firewall >> "$log"
fwconsole ma remove firewall >> "$log"
}