Output PowerShell variables to a text file December 20, 2023 by Tarik Use this: "$computer, $Speed, $Regcheck" | out-file -filepath C:\temp\scripts\pshell\dump.txt -append -width 200