Automatic configuration for metatrader 4/5 Client?

 

I am attempting to setup a always-on MetaTrader Client that can interact with my VPN.

For this I need the ability to do the following with a script:

  • Turn on the Client
  • Login to the Client
  • Configure the Expert advisors PUSH/PULL and REQ/RES sockets

Any help? All I found was manual setup.