How to manage VM through line command