You can't compile commands on the fly, but you can interpret them. I've done this with my in-game console. The basic idea you need to follow is this:
function process_entry( string$ )
if string$ = "position object" then position object bla,bla,bla,bla
if string$ = "rotate object" then rotate object bla,bla,bla,bla
if string$ = "scale object" then scale object bla,bla,bla,bla
rem etc.
endfunction
Of course you'll have to pull apart
string$ before you can process it, so if string$ = "position object 1,10,10,5" you'll have to find a way to only look at sections of the string. Something like:
if lower$(left$( string$ , 15 )) = "position object" then ...
TheComet