Script from Catia V5 to 3Dexpirience

I'm trying to run a script created in Catia v5 with 3Dexpirience Catia but it does not work. What is the difference in macros between Catia V5 and 3Dexpirience? How can I migrate the script from Catia v5 to 3Dexpirience?