there are two ways to obtain fully remote control for your purpose:
- send your scipt command through port 30001, repeat and repeat again
- send your current urp program through port 30001 (transfer to UR script), then use RTDE to update the program variable.
for more detailed desciption, i just posted a topic related to remote control: