I was able to run powershell script in container which maps network drive.
For example:
ping server-ip
$net = New-Object -ComObject WScript.Network
$net.MapNetworkDrive(“H:”, “\server-ip\some-path”, $false, “username”, “password”)
Note that ping was required to find a route to network share. For some unknown reason the first attempt always fails and it cannot find a route to network share. Therefore I run this in loop until it succeeds. It is worth mentioning that I ran containers in overlay network.