RunScript outside of command not working

If I run the below script insde a command, it just works fine, however, if I run the script from a web service call, it did not work. The Rhino Main UI is inactive(no response) at the time we call RunScript, any helps? Thanks so much!

script = “_-Export _all _Enter “C:\Users\robin.you\Centric8\tanjiro\Styles\Test_8\AR_4DOOR_FLAGSHIP_169.3dm.stl” _Enter _ExportFileAs=Binary _Enter _ExportUnfinishedObjects=Yes _Enter _PolygonDensity=50 _Enter”

Are you invoking it on Rhino UI thread?

Sure, let me try, Thanks Tom!

It works great, Thanks Tom!!!