Hi Siv,
I do this the following way:
$vcenter=Read-Host "Please enter VCenter FQDN"
$csvlocation=Read-Host "Please enter a location for the CSV logfile"
$servername=Read-Host "Please enter the FQDN of the server"
Connect-ViServer $vcenter
get-vmhost $servername | get-scsilun | Export-Csv -NoTypeInformation -UseCulture $csvlocation\$vcenter.csv
Disconnect-VIServer $vcenter -Confirm:$False
Save the script as a PS1 file and run from powercli.
Hope this does the trick for you.
Regards,
Marco