Network storage mount with script

Hi!
Is it possible to mount a NAS drive as a network storage (Config\System\Storage) with some kind of script or automation?
I would like to make a starting sequence like this:
when Samba NAS is loaded => map this network storage => start Frigate
Currently the OS try to mount the network storage sooner, then Samba NAS is ready.
Thanks in advance!
BR,
Zsolt

**EDIT: Samba NAS can mount the network drive, but the name will change to capital letters. So in my case the shared drive become FRIGATE. The current workaround is the following:
mount-usb-drive-in-hassio