Copie o PowerShell para o editor de texto

<std-output> > <text-file>

echo "random text" > sample.txt
cat sample.txt > newfile.txt
systeminfo.exe >> newfile.txt
bae