This is now an experimental feature in the latest update. It hasn't been tested thoroughly with every command, so feedback and issue reports would be highly appreciated.
yourMapName_loop.script will run in the background as you play
Viewing post in Suggestion Feature : looping script
wow thats awesome and amazing on it will definitely give feedback let me test it out and you right since not all commands have been tested so am sure some wont work for now but that very understandable since its still in experimental stage. this is great news as a feature now in development to open up more on creativity