PM file to login and discover vms

Contains two functions: Login, discoverVM.