GRIP is a programming language unique to NX; it used to be the go-to method for automating tasks within NX. However, it has been in 'maintenance' mode for years which means no significant features have been added. So, while GRIP is still available for use, it is several years behind the full functionality available in NX. You would be better served by looking into journals to automate NX.
Several examples can be found by searching this forum or at the website in my signature line.