function ConvertToBase64($string) { return [System.Convert]::ToBase64String([Char[]]$string) }