The -l just localizes the alias to the script file it's saved to.
Try using:
/dialog -m y_cookie y_cookie