Generate a script inside a Unity game and attach it to an object

I have a question related to the following scenario, just to know if it is possible or can be managed in some way: suppose I have a Unity game running on an Android device. In such a game, I can write a custom script (just typing it), and then I would like to attach it to an object and see the effects. Is it possible without the editor’s help (so at runtime)? How can it be done?
Eventually, could it be possible via a remote process that accepts the script, compile it for the device and send the binary that can be attached as a plugin in the game?

The short answer is no, you can’t. As scripts have to be pre compiled and bundled into the game.