PowerShell converte texto 20 MB em bytes
$str = '3GB'
$int64 = [int64]$str.Replace('GB','') * 1GB
Muddy Manx
$str = '3GB'
$int64 = [int64]$str.Replace('GB','') * 1GB