This is exactly what I was looking for - thank you for the necro!
An additional tip, if you need to find the exact right path to your NAS:
Open up cmd line and run “net use > mapped_drives.txt”. It will dump the exact strings you need into a text file for you.