This is how simple it is to create multiple files in Windows PowerShell
ni file1.txt, file2.txt, file3.txt, "file 4 with spaces.txt", file5.txt
ni just stands for new item.
Now to answer your question of create multiple files a.txt, b.txt, ... , z.txt. in Bash with touch {a..z}.txt, you have 2 options:
In Powershell:
bash
touch {a..z}
touch {{a..z},{A..Z},{0..99}}.txt
exit
Or (For touch {a..z}):
1..26 | ForEach-Object { New-Item -ItemType File -Path ("{0}.txt" -f ([char]($_ + 96))) }
Or (For touch {{a..z},{A..Z},{0..99}}.txt):
1..26 | ForEach-Object { New-Item -ItemType File -Path ("{0}.txt" -f [char]($_ + 96)) -Force }; 65..90 | ForEach-Object { New-Item -ItemType File -Path ("{0}.txt" -f [char]::ConvertFromUtf32($_)) -Force }; 0..99 | ForEach-Object { New-Item -ItemType File -Path ("{0:D2}.txt" -f $_) -Force }
You have both the options of entering bash and use your regular touch command or using ForEach-Object in PowerShell. Now one important thing to remember is that unlike Linux Windows does not distinguish between a.txt and A.txt, so you'll end up having either a.txt or A.txt
..IIRC that is a feature to come with future PS versions. In windows the command wouldn't work because it doesn't distinguish between the casings. richardspowershellblog.wordpress.com/2010/06/06/…