First, so far I have not found any feature in PolyScope that allows a created program to be called as a subprogram.
Second, a PolyScope 5 program (.urp) cannot be used in PolyScope X (.urpx). Please see the link below for more details.
Convert URP to URPX? - Technical Questions / URScript - Universal Robots Forum