site collection usage

Use this script to get Spsite collection total data usage:

$site = get-spsite “http://spsitecollection

$site.Usage.Storage (/1GB , /1TB / , /1MB)

$site.Dispose();