Something that would take any number of arguments, where each argument would be a path to a file or directory. If the user does own a particular path then it should check it to see if the path represents a normal file AND if that file is executable. If it is, then your script should execute/run the file.
Thanks for any help I've been trying different things for too long and I'm frustrated.
Best Answer
read 'man test' to see what the checks do.