Workflow not working in Virtual Machine

No problem,
I hope when you talk about minimize the window you are talking about Remote Desktop

If it is unattended robot, you dont need to minimize the window, orchestrator will kill the session. And the robot will do the needful.

I think it is designed like that. Simler thing happed to me when i log back to the vm after starting the job.

But when I dont log in, the robot finishs the job

I hope you try with out login to the vm and see the result.

Best regards
Husain