code: def resolve_command(self, com, data, macromodulations, timeperiods):
          
          logger.debug("Resolving: macros in: %s, arguments: %s",
                       com.command.command_line, com.args)
          return self.resolve_simple_macros_in_string(com.command.command_line, data,
                                                      macromodulations, timeperiods,
                                                      args=com.args)
docs: Resolve command macros with data
  
          :param com: check / event handler or command call object
          :type com: object
          :param data: objects list, used to search for a specific macro (custom or object related)
          :type data:
          :return: command line with '$MACRO$' replaced with values
          :param macromodulations: the available macro modulations
          :type macromodulations: dict
          :param timeperiods: the available timeperiods
          :type timeperiods: dict
          :rtype: str