PowerShell PowerShell $file = "C:\Users\juan\Desktop\dplus\dplus_1.rtf" $rtf = New-Object System.Windows.Forms.RichTextBox $rtf.Rtf = [System.IO.File]::ReadAllText($file) $rtf.Text | Out-File $file.replace(".rtf",".txt") 1234 $file = "C:\Users\juan\Desktop\dplus\dplus_1.rtf"$rtf = New-Object System.Windows.Forms.RichTextBox$rtf.Rtf = [System.IO.File]::ReadAllText($file)$rtf.Text | Out-File $file.replace(".rtf",".txt")