Sort:  

Using a programming language called javascript and a lot of chatgpt haha, in the end it was very simple, 1 file practically for each action. Then I installed it on windows and set up a task schedule, which runs every X time and thus automates it.