A script editor in the GUI would be a too big risk to be able to take control over the host.
A lua script on the host can execute almost anything, with the use of fileaccess/sockets etc.
An extra hubsided script could be made for what you want though, possibly configurable with hubcommands, but maybe Ptokax already has something that can be used for this. After beta a 'Ptokax Lua API' will be added to FlexHub to support those scripts.