How to pass the entire code in a variable to Invoke Code activity

compiling code cannot be bypassed therefore loading source code as string will not work so far
the available options are dependend from task what is to achieved

also we can have a look here: