This post has been marked by the post author as the answer.
I renamed the file when I added it to my script bank and that seems to be the issue.
The script works if it is named door.lua.
If I rename the script door_use_open_auto_close.lua it does not work.
Since I cannot have two files with the same name how do I rename the file and have it still work?
Update: I figured it out.
I had to change the following in the script.
From
To
function door_use_open_auto_close_init(e)
From
To
function door_use_open_auto_close_main(e)
Now it works with the new name.
Thanks you were a huge help and I truly do appreciate it.