AJAX request to Elasticsearch from Kibana 7.10

We've written a lot of custom plugins for Kibana for our customer. I'm trying to see if we can port them to 7.10. Some of our plugins access data from different Elasticsearch indexes when the user click on a button. We send them to the Elasticsearch instance using the _msearch command in Kibana. That way we don't have mess with Elasticsearch authentication since it's handled through Kibana. Is there another way to do multiple request to Elasticsearch within Kibana 7.10? I can see from viewing network activity that 7.10 now uses the http://localhost:5601/cdp/internal/search/ese command to search Elastic. Is there any documentation I can view about the ese search command and how to use it or code samples? That might work for what we are doing.