Isn't the On Demand program executing when the Command is sent to the instance of Trigger stored in <other> at runtime? I'd suggest you adding some Log Message actions or adding some breakpoints (click on the outer left side of any action) to debug the problem.