How to automate task using RDP?

Check this