[wrt] Modify xpk to wgt and script