PowerCLI script, Get Cluster VMDK disk sizes for all VMs

Version 1

    #Get cluster VM total disk sizes report, from user input

    $cluster=Read-Host "Provide the cluster name"

    Get-Cluster $cluster | Get-VM | Get-HardDisk

    Select Name,@{N="VM";E={$_.Parent.Name}},

        @{N="Datastore";E={$_.Filename.Split(']')[0].Trim('[')}},

        @{N="Cluster";E={Get-Cluster -VM $_.Parent.Name | Select -ExpandProperty Name}},

        DiskType,Persistence,CapacityGB