OK, got it. Applescript is powerful, but at times can be a bit gnarly in terms of what you need to do to get things like paths from the shell into it or the proper format for it to recognize them.
How does the share actually show up in the /Volumes/ list? As "HomeDirs" or is it the full path as in "servername.org/HomeDirs"?
Depending on how it actually shows up in the Finder or when doing something like ls /Volumes, you can try the following script. You'll have to make any necessary adjustments to it though, since I can't be sure it would work as is in your environment.
#!/bin/bash
## Get the current logged in user's name
CURRENTUSER=$(stat -f%Su /dev/console)
## Set variable for the volume name
VOLNAME="HomeDirs"
## Set up command to check for the mounted volume
VOLCHECK=$(ls /Volumes/ | tr ' ' '
' | grep "^${VOLNAME}$")
## Create path to the folder we want to create an alias from
FOLDERPATH="/Volumes/${VOLNAME}/${CURRENTUSER}"
## Create path to where the alias will go, using the logged in user's name
ALIASPATH="/Users/${CURRENTUSER}/Desktop/"
function createAlias ()
{
## If its mounted, set variables in Applescript HEREDOC section by echoing back the shell variables
## Create the alias to the current logged in user's Desktop
/usr/bin/osascript << EOF
set theFolderName to do shell script "echo "$FOLDERPATH""
set theFolder to POSIX file theFolderName
set theAliasPath to do shell script "echo "$ALIASPATH""
set theAlias to POSIX file theAliasPath
tell application "Finder" to make alias to folder theFolder at theAlias
EOF
}
## Check to make sure the volume is mounted by checking the $VOLCHECK variable to see if it was populated with what we expected
if [ "$VOLCHECK" ]; then
echo "Volume "${VOLNAME}" is mounted"
echo "Creating alias of "${FOLDERPATH}" to "${ALIASPATH}""
## Run the above function to create the alias
createAlias
else
## If the volume is not mounted, exit, or do something here to correct that and then run the function
echo "Volume "${VOLNAME}" is not mounted. Exiting."
exit 1
fi