Powershell outfile to a file to certain directory code example Example: powershell new item New-Item "C:\file.txt" -ItemType File -Force