You can use the method you mentioned.
But if you're following today, like tomorrow, comment the next day. Don't do the same thing every day. This could be risky for your account; it might flag you as a bot.
Have the bot application do things that a real person would do.
1. Day: Follow
2. Day: Like
3. Day: Comment
These are just examples.
And once these steps are completed or you've made progress according to your own goals, let your account rest for a few days. This way, your account will grow without spam, and you'll minimize the risk of it being closed. Avoid opening accounts on servers like VDS, because many of the IP addresses of such servers may be blocked by platforms at a rate of 80%.