Following is the syntax of the command to map a network drive using PowerShell:
New-PSDrive -Name "<drive letter>" -PSProvider FileSystem -Root "\\UNC\path\to\share" -Persist
Following is an example of the command to map a network drive using PowerShell:
New-PSDrive -Name "Z" -PSProvider FileSystem -Root "\\Example\share" -Persist