Creating a function to compile an input string

Ok so I want to create an EditableBox on screen, where the player writes code. Once the player clicks a button, the code in this Box is sent to a function that compiles this code and runs it.

I am new to UE5, and I have done this in Unity already. How would I do this in UE? Would I edit the widget code itself? Do I create a widget component? Can this be done in blueprint? I’m very new, so I would appreciate some advice.

I’d recommend going to watch some of the starter resources and getting a handle on blueprints/UMG it can likely be done depending on what you mean by compiling etc but it’ll require a bit more knowledge of bps