function Get-FolderSize ([string] $FolderName)
{
$value = “{0:N2}” -f ((Get-ChildItem -recurse $FolderName | Measure-Object -property length -sum).Sum / 1MB)
echo “Ordner ${FolderName} hat eine Grösse von : ${value} MB”
}
Get-FolderSize “C:\Temp”