Execute external programs / Create a file, etc.

Is there any kind of script madness I could go with to execute an external program or something, such as opening notepad.exe? I really just want it to be like this:
walk onto an event tile, (player touch trigger) then open notepad.exe with a script from Ruby

and also I want to know how to make a script that could create a .txt file in the game folder just to add a little disturbingness sort of- kind of similar to Doki Doki Literature Club, when it
Spoiler
executes events in renpy to create files and delete files from the game folder and stuff..
. However, I want it to simply make a text file with some content and a name in the game folder like as in:
Document/RPGVXAce/(gamename)/(Folder where the text file would go)\TEXTFILENAME.txt

So basically a script that could make files with content, all in one script. I really am trying to figure it out, but I just don't know how, so, just to add a little more variety to my game I want something like that. (I'm bad at explaining this)
I can't tell you how it is done, but I can point you in a direction of where to start:

search for a script called SES External Text here on the forum, that script reads and creates text files for handling messages and multi-language options.
Yes. While I was working on this, I've made some methods that you can call from events. You can use then to create files, open external softwares and open and use web browsers. However, the explanation are in portuguese and I can't translate right now. If you have problems, let me know later.
Yes. While I was working on this, I've made some methods that you can call from events. You can use then to create files, open external softwares and open and use web browsers. However, the explanation are in portuguese and I can't translate right now. If you have problems, let me know later.

Hi. Thanks for your reply on the site. I still struggle to understand what to do. Could you please help me with a simple script/plugin that could execute .vbs file on plugin command/script?
For security reasons, you cannot do this in JS. Node.js (framework used in RPG Maker) even allows you to do this, but it is not recommended. Mainly code files, such as .vbs. What are you trying to do with this file? To find out if it is really necessary to run this command on an external file.
you cannot do this in JS. Node.js
Thread is for VX Ace

Original thread: https://forums.rpgmakerweb.com/threads/execute-external-programs-create-a-file-etc.118234/