powershell create a file or registry item and set values code example Example: powershell new item New-Item "C:\file.txt" -ItemType File -Force