I'm not familiar with New-SmbMaping
but in PowerShell 3.0 you can use the New-PSdrive and the -Persist switch to map a drive. Remoce the psdrive to disconnect from the mapped network drive.
New-PSDrive -Name W -Root \\myserver\myfolder -Persist -PSProvider FileSystem