URCap for calling URscript

According to the Javadoc, the appendRaw() method will append the raw script to the ScriptWriter, without auto-indentation and similar. This means you can import this from i.e. a file which has indentation and so on.

Unfortunately, the approach is not just quite as easy, as you suggest above.
You need to open and read the file. I suggest you take a look at this sample: