In the current VimDatastore PSProvider a New-Item always results in the creation of a folder.
In analogy with the FileSystem PSProvider, it would be useful being able to use the ItemType parameter to specify either a File or a Directory.
That would allow the creation of a file on a datastore, for example
New-PSDrive -Location $ds -Name ds -PSProvider VimDatastore -Root '\'
New-Item -Path ds:\MyVM\notes.txt -ItemType File