In the time you spent typing that up, Marcus, you could have processed an entire image.
BatchPreProcessing Script for calibration (ImageCalibration), cosmetic correction (CosmeticCorrection), registration (StarAlignment).
ImageIntegration
DrizzleIntegration
Then, you can, if you wish, do your arcane stuff here.
Then, LRGBCombination, or PixelMath to stack your LRGB masters.
That's the basics!
H