Use the New-Item cmdlet to create a new file in PowerShell.
# To create a new text file called "file.txt":
New-Item -Path file.txt -ItemType File
Use the New-Item cmdlet to create a new file in PowerShell.
# To create a new text file called "file.txt":
New-Item -Path file.txt -ItemType File