go to post Steven Coker · Jul 10, 2023 Nevermind! I found that in powershell if I use the snippet below, PS will intake the file as the listed encoding. In my case, CTerm was outputting UTF8. I brought that file into PS using Unicode, and it removed the extra spaces. (Get-Content -Path <filepath.txt> -Encoding Unicode)