How can i change the pc desktop background with script?

The title says my question.
i want to try and replicate some Oneshot features
welp i did more research and RMMV definitely does not support any of that BUT my solution is to create a separate C# script that does it for me ill probably create a custom plugin to access it through RMMV (Side note: I'm also going to create multiple instances of the game that do separate things I'll use a C# script to run two Instances of the game and use that script to communicate data between the two instances (there's probably a more efficient way to do that but whateverrrr) )
just a warning:
the reason why RMMV as a browser-based game blocks such access is not due to the RM engine, but because all browsers (and all connected antivir programs) sandbox the HTML-based code.
Because any such access allowed in the browser would mean that any virus on a website could do the same, there is no real difference between an external website and a local HTML5-based program.

so if you try to program that in by external means, you both risk your antivir-heuristik calling alerts on your code, and that compromised websites detect it and try to use it to infect your computer.
Local deployments (i.e. not Web deployments) run on NWJS, which is an extension of Node.js. This gives locally-deployed games permissions to perform tasks on the local system, e.g. read/write files. Changing the desktop background (a.k.a. wallpaper) is possible in this case, e.g.
As a player, I personally would find that annoying, but it's your game~
Agreed...if I played a game that changed any setting in my operating system, it would be an instant uninstall (and probably 1-star review).

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-change-the-pc-desktop-background-with-script.143686/