Yes, you can map/unmap a drive on the network location from the command prompt. Use the PUSHD command to create a temporary mapping to a network drive. You can also quickly disconnect this drive by using the POPD command:
Mapping the above path to a shared drive (starting from Z:) changes the command to that mapped drive.
To unmap, use the POPD command.