New-Item -ItemType Directory -path c:\data1
1..50 |ForEach-Object {New-Item -ItemType file `
-Path c:\data1 -Name "File_$_.txt"}