Automation of unattended control of remote computer

Options

I have set up an unattended access circumstance of a remote computer so I canr transfer a file from the remote computer to a server on my end - a backup of the file.

It's pretty easy to do but I still have to do the file transfer manually.   Is there a way to automate this task?  I have TeamViewer open through Windows Tasks but would love for something that would do the file transfer automatically as well - identify the file and then send it to my server.

Any ideas on how to do this?

Thanks!