Not sure if I can, or if I want to. I'd prefer not to make a call to a command line argument.
I've managed to work out how to get the wsh runtime library referenced in my project and used the same/similar scripting code to get the desired effect.
The reference I need in my project was a com reference to the windos script host object model. This added iwshruntimelibrary as a reference in my project
Imports IWshRuntimeLibrary
sub main()
Dim neto As New WshNetwork
'map a host admin share drive to u: using a username and password
neto.MapNetworkDrive("u:", "\\myhost\C$", , "myhost\user", "password")
'remove mapping
neto.RemoveNetworkDrive("u:")
end sub
This seems to do the trick.