Moved CWAttach into a script because that works in damnscript apparently.