I have improved a couple of tools created some time ago to manage the domains in the control panels. These scripts (made in php) can be used for administrators who need to manage several imscp installations and don't want to do every single step from the imscp control panel (you can script the changes easily with this scripts)
The code should work properly altough I'd recommend to do some testing before trusting it totally.
The most current code (that should work in 1.1.0-rc3 and newer can be downloaded from -> here
Usage instructions can be found in the wiki -> here
Feel free to contribute/comment on anything related on this thread or in the bitbucket repository.