Exactly like @Vivek_Sharma explain.
FYI…someone recently implemented a new feature called “ScriptActivities” in openrpa where you can implement this script or any other as a “component” (no need to duplicate the code).
You can find official documentation on github and references here in this forum.
You can run this python script in NodeRed too but you can choose what’s best for your process.
Hope this help!