touch
Create an empty file
#Requires -Version 5.1
param([string]$filename = "")
try {
if ($filename -eq "") { $filename = Read-Host "Enter the filename" }
"" | Out-File $filename -encoding ASCII
"✅ Created a new empty file called '$filename'."
exit 0
} catch {
throw
}Path and filename of the new file