PowerShell – Base64 to Byte File

$Bytes=[Convert]::FromBase64String($String)
[IO.File]::WriteAllBytes($Filename, $bytes)