I received excellent replies and knowledge as to how to use HDvM CLI for automation. Here is one more query that I have.
Recently, I have seen that the HDvM CLI batch file execution fail as it said that it ran out of memory. I increased the size by editing the HiCommandCLI.bat file.
What I want to know:
"Is there any way to ensure that the HDVM_CLI_MEM_SIZE variable is free before I run any query? What I mean is is there any way we can flush its content and start a fresh every time before running any commands/queries?"