Dunfermline FC triumphed over Falkirk in a penalty shootout, securing their spot in the Scottish Cup final for the first time since 2007.