Could you please help me how to access a vm from CPO? Below are my scenario details:
1) I have created one VM in Vcenter
2) I need to run some windows commands in Vcenter's VM using CPO activities.
Assuming it's a windows VM since you mentioned windows commands you will need to create a windows target for it and then you can use windows commands against that.
You can create the target manually in the definitions->target area or you could create the target in a process/automatically via the Northbound Web Services and a call to the TARGET WSDL.
If you want more info on that, check out my blog on the NBWS: