Game interactions with windows

Well, I want to make my game interact with the user's PC, like creating a .txt file with an text on it or closing the game randomly

Is it possible in RMMV?
Maybe this will help:

Original thread: https://forums.rpgmakerweb.com/threads/game-interactions-with-windows.170483/