How to run remote script.txt in plugins?

I want to run remote script.txt in plugins.

var arrScripts = [{"Url": "http://ip:port/script.txt"}]; = true;
window.Asc.plugin.executeMethod("InsertAndReplaceContentControls", [arrScripts]);

but I got this. The script code was inserted into the document as a string.

Document Server version: 7.4.1
Installation method: docker
OS: centos7
Browser version: edge 113.0.1774.35

Hello @tankxxl
As far as I understand, you want to interact with the editor by executing plugin methods outside the editor. I believe you have to take a look at Automation API: ONLYOFFICE Api Documentation - Automation API
If I misunderstood your request, please clarify it.

Sorry, The Automation API cannot meet my needs.
I use the docbuilder API to automatically generate document content and store it in a script.txt file. I want to execute this script file as a URL in the plugin to insert it into the currently open document.
The script.txt written by the docbuilder API is equivalent to a template for document content.
As shown in the picture in the problem, it should not display the docbuilder as a string, but rather as code to execute.

We are checking the situation, I will update this thread when we have something to share.

Hello @tankxxl
Sorry for the late reply. You can run scripts remotely with this method:ONLYOFFICE Api Documentation - callModule