The Out-File lets us write output to a file. What if we want to write input to a file?
I want a list of all the commands that I wrote during a PowerShell session. The file should look something like this:
dir
cd
ni myFile.txt -t file
cd..
We want to keep track of what commands we use in PowerShell.