After many hours of troubleshooting figured out a way, in the script i auto mount it by running
#mount the targets # Mount the windows Share to linux mount -t cifs //192.168.1.195/Shares /media/servers/zeus/shares --verbose -o vers=2.1,user=administrator,password=mypass,domain=casa
# Mount the NAS share to linux mount -t cifs //192.168.1.204/BackupsDailyZeus /media/backupnas --verbose -o vers=2.1,user=administrador,password=mypass
then when the script finishes i unmount all cifs
#unmount the share so i wont get the input/output error umount -a -t cifs -l