Hello,
You would want to convert the txt file to an mx3 file (literally, just change the file extension. You can do this when you save it in your text editor, or just right click the file in windows explorer).
To call a specific script, instead of
mumax3 -i
You would write
mumax3 -i nameofscript.mx3
where nameofscript is the name of the file. The file should be located in the same directory as the mumax executable for simplicity. Alternatively, you can give the entire file location. If your mx3 file is located in the Documents folder, you could do something like
mumax3 -i C:\Users\Josh\Documents\mumax3_10\nameofscript.mx3
And it will work, because it now knows where to find the script.
When writing the command, it should be written in the same directory as the mumax executable, as you have been doing. Alternatively, you can add mumax to your PATH variable, but that is a bit more work
Best,
Josh L.