Thank you for your answers. Actually, when I set to run the script as a root cronjob it does not ask for the password anymore (I also set the owner to be root). Everything works great now.
But, will look into autofs later nevertheless, always good to learn something new. Thanks!