Use the "ConvertTo-FormattedNumber" cmdlet which ships with the NetApp PowerShell toolkit. This will convert bytes to a human readable number...
PS C:\> ConvertTo-FormattedNumber -Value 1024000 -Type DataSize -NumberFormatString 0
1000 KB
PS C:\> ConvertTo-FormattedNumber -Value 10240000 -Type DataSize -NumberFormatString 0
10 MB
PS C:\> ConvertTo-FormattedNumber -Value 10240000 -Type DataSize -NumberFormatString 0.0
9.8 MB
PS C:\> ConvertTo-FormattedNumber -Value 102400000 -Type DataSize -NumberFormatString 0
98 MB
Notice that it will round based on the "-NumberFormatString" value.
If the result is in blocks, then each one represents 4096 bytes (4KB). You'll need to multiply by 4096.
Hope that helps.
Andrew
If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.