How to send comands to VM?

How can i send files and commands to vm?
Like vmware VIX api or some api like this?

Thanks!