There should be no problem, but you should take a look first how to manage dll plugins inside delphi, becaus ethere are some restrictions:
Check delphi.about.com there are some tutorials.
http://delphi.about.com/od/windowsshellapi/a/dll_basics.htm
One of the issues you will find first is that you could have problems with classes, because a DLL its like an independent application so it creates its own Class table. So for the host app the class TDWScript contained in the dll its a different class that the one it has contained (the host).
There are some ways you can acomplish that and that depends what are your needs:
1)
You could for example call DLL methods, not directly calling the TDWscript class, just calling a method like 'ExecuteScript( afilename )'
2) If your plugin need to interact with the host application it is mroe complex, because you have to stablish a communication protocol so both (host and plugin could interact)
The options are:
a) Use Interfaces instead of classes directly.
b) Use a memory manager like sharemem (wich comes with delphi) or fastMM4 (open source) which should be included in bot DLL and APP so they will share the same memory manager and so the same class table.
If you're new to plugins please check JEDI VCl components there they have a JvPlugin and JvPluginManager, its a simple but powerfull Framework to start cretaing your own Plugin framework. There are some demos of how to manage plugins, create them using the DLL way. Which could be usefull for what you want. and also a demo of how you can use Interfaces instead of direct using the classes.