new-item force TerminatorExpectedAtEndOfString code example Example: powershell new item New-Item "C:\file.txt" -ItemType File -Force