This should really be accomplished by adding an ARCH_CMD target.  Users can then execute normal CMD payloads or an arbitrary command with the cmd/windows/generic payload.  This would avoid allowing the user to set a payload which won't be executed.