There is an area dedicated to PowerCLI: https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/bd-p/2805
I've reported your thread, asking moderators to move it there - please don't create a new one.
But, you should search that area, rather than expect someone to write it for you.
Have a look at my LUN report – datastore, RDM and node visibility post.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference