One of my favourite places on the web is VMware Labs. This is a growing collection of great free utilities (Flings) made by the VMware engineers.
One excellent utility is Onyx. This is a small utility that sits between the vSphere client and the vCenter. It will monitor the traffic during the vSphere session and automatically create powershell commands.
The Onyx output can then be saved or edited as a powershell script to be used again at a later date. A great help for automation projects.
I have created a small demo on how to install, configure and use this utility .
Check it out in my video section