code: def inject_params(self, params):
          
  
          for arg, value in params.items():
              cli_arg = '--{}'.format(arg)
              if cli_arg in sys.argv:
                  # arg already passed on the command line
                  self.tcex.log.debug('skipping existing arg: {}'.format(cli_arg))
                  continue
  
              # ThreatConnect secure/AOT params should be updated in the future to proper JSON format.
              # MultiChoice data should be represented as JSON array and Boolean values should be a
              # JSON boolean and not a string.
              param_data = self.tcex.install_json_params.get(arg) or {}
              if param_data.get('type', '').lower() == 'multichoice':
                  # update "|" delimited value to a proper array for params that have type of
                  # MultiChoice.
                  value = value.split('|')
              elif param_data.get('type', '').lower() == 'boolean':
                  # update value to be a boolean instead of string "true"/"false".
                  value = self.tcex.utils.to_bool(value)
              elif arg in self.tc_bool_args:
                  value = self.tcex.utils.to_bool(value)
  
              if isinstance(value, (bool)):
                  # handle bool values as flags (e.g., --flag) with no value
                  if value is True:
                      sys.argv.append(cli_arg)
              elif isinstance(value, (list)):
                  for mcv in value:
                      sys.argv.append('{}={}'.format(cli_arg, mcv))
              else:
                  sys.argv.append('{}={}'.format(cli_arg, value))
  
          # reset default_args now that values have been injected into sys.argv
          self._default_args, unknown = self.parser.parse_known_args()  # pylint: disable=W0612
  
          # reinitialize logger with new log level and api settings
          self.tcex._logger()
docs: Inject params into sys.argv from secureParams API, AOT, or user provided.
  
          Args:
              params (dict): A dictionary containing all parameters that need to be injected as args.