You may use the following command to map a network drive using the Microsoft Command Prompt or Microsoft Windows PowerShell. Additionally, replace the <HOSTNAME> and <SHARE> variables with the appropriate server and share name.

NET — USE Z: \\<HOSTNAME>\<SHARE>

Enjoy!