Try using Uopilot, see this tutorial as an example script.
https://progamercity.net/l-portugues...eo-script.html