for the maps in a .bat (.cmd!)

Yes, use net use , for creating a share rmtshare would be used
_________________________