New-PSDrive -Name "DriveLetter" -PSProvider FileSystem -Root "\\Computer\Share" -Credential (Get-Credential) -Persist

You don't have to map the entire drive. You can map deep inside a folder structure.

Press Win + E or click the folder icon on your taskbar.

Remove-PSDrive -Name "M"