Looking for someone with experience accessing a LINUX SMB share from .Net.

I was hoping to open a text file and write to it.

Someone gave me a POWERSHELL script showing how they map a drive to that share username and password being set.

Code:
New-PSDRIVE -NAME "I" -PSProvider FileSystem -Root \\xxx.xxx.xxx.xxx\xx01 -Credential $Credential -Scope Global -Persist
I'll be doing this programmatically - running as a service on a backend server.