This post is some quick notes on creating a new files and directories using PowerShell.
New-Item is the command.
Remember tab completion for everything we’re doing here.
New-Item -ItemType Directory -Name Test_Stuff
New-Item -ItemType File -Name Test_File.txt
Same again as above, New-Item. This time swap the ItemType from Directory to File.
Add-Content .\Test_File.txt -Value 'Hi hi!... just a wee message here.' Get-Content .\Test_File.txt