Just because you can type in code and it says "Lua" at the top of the console doesn't necessarily mean you have the full power of the language. In this case it might mean that, but there isn't anything stopping the devs from fixing that.
In my opinion, the next update should attempt to lock users in to TPT functions only for security reasons. Then we could upload small scripts along with our saves. (Then we have the glorious infinite wifi channels!)