RunScriptLine works just fine with quest scripts because you can set the value of XXXXQuest.Variable to your own variable.
I don't see how you could get an object script value unless it's a global, or it is also a quest script var, or you use RunScriptLine in the object script itself to set your quest.var.