you should be able to use the
logoff
command to log out of the VM without shutting it down.
This will log off the current user.
Or
You can create a batch script that runs the “logoff” command and then invoke the batch script at the end of your automation process
@echo off
logoff
Let us know for any further clarification
Cheers @Sairam_RPA