Ireland are closing in on an innings victory after completely dominating the third day of their Intercontinental Cup clash with Scotland in Dublin.