make file/folder powershell code example
Example 1: powershell new file
New-Item -Path . -Name "testfile1.txt" -ItemType "file" -Value "This is a text string."
Example 2: powershell new item
New-Item "C:\file.txt" -ItemType File -Force
New-Item -Path . -Name "testfile1.txt" -ItemType "file" -Value "This is a text string."
New-Item "C:\file.txt" -ItemType File -Force