take a look at this post:
https://www.autoitscript.com/forum/topic/204362-microsoft-edge-webview2-embed-web-code-in-your-native-application/?do=findComment&comment=1475295
in short, to run those scripts from SciTE, you should use as a second parameter, in the above function, a path pointing to a folder where you have read/write access, for example @scriptdir, or another path where you have write permission.