Hi,
You need to pass username/password to connect remotely to the VM where the program will be executed.
Here is a simple example how to run a Linux 'ls' command to get a listing of files inside a directory and redirect the listing output to a file:
vmUsername -> root
vmPassword -> mysecretpass
vm -> <some-virtual-machine-object>
interactiveSession -> No
programPath -> /bin/ls
arguments -> /some/folder/ > /tmp/listing
workingDirectory -> <Not set>
environment -> <Not set>
Also, you can take a look at Guest script manager package for an alternative way to run scripts - https://communities.vmware.com/docs/DOC-25474