Run .script program with Python on UR5e

Hi, I have done a bit of programming with the Polyscope for my UR5e, but I want to now do it with my python environment laptop. So I have extracted the .script file of my pickandplace program from the Polyscope with Filezilla, and now want to run this program from my laptop (with python). I’m assuming I can do this with the TCP/IP socket connection or the RTDE method, but I’d like to know which one is suitable, and if there is some code snippet reference/resources I can use to do this, it’d be extremely helpful!