for($x=0; $x -lt 10; $x=$x+1)
{
New-item c:\\file\"file0"$x".txt"
Set-content c:\\file\"file0"$x".txt" -value file0$x
}
for($x=10; $x -lt 21; $x=$x+1)
{
New-item c:\\file\"file"$x".txt"
Set-content c:\\file\"file"$x".txt" -value file$x
}