Automation Script to prepare/update VDIs

Hey, our processes are running on several VDIs. Often we have the problem, that we would like to switch the process to another machine but we have to synch the OneDrive Sharepoints on the machine first otherwise the process cannot find the correct path for files it needs to work on.

My idea was to write a script e.g. in python (or other) which we can just run and it include/synchs the folder automaticly in Onedrive. Does anyon have recommendation how this can be archived/where I can learn it?

Thanks a lot and best regards.