Running the code created in it requires certain basic skills: saving the code - creating a file with the code in a specific location - accessing this location from the Minecraft environment to run the script. This will be difficult for a child.
It needs to be modified so that code can be run from the command line directly in Minecraft
There is an example of implementing this solution in an existing plugin Visualmodder
(see the picture)
specify the player's name
specify the script name
which allows the player to run this script without spending time saving and transferring the code manually.