#check to see if the PowerShell Snapin is added
if ( (Get-PSSnapin -Name "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null )
{
Add-PsSnapin "Microsoft.SharePoint.PowerShell"
}
$siteUrl = Read-Host "Enter the url of the Site Collection :"
$SPSite = Get-sPSite $siteUrl
#Contains both First Stage & Second Stage Recycle bin Items
$SPRecycleBinItemCollection = $SPSite.RecycleBin;
write-host "Processing Site: " $SPSite.RootWeb.Title "`n"
write-host "Total No. of Items in Recycle bin: " $SPRecycleBinItemCollection.CountPowerShell script to get the site collection level recycle bin item count.
