Used by the engine to call the autocomplete function for a console command, and retrieve returned options.