Rewritten as module.

Added additional example ListVirtualMachines script.