Change directory before running an external command

I have a julia file, say FileIwantToRun.jl in many folders/directories. I want to write a script that visits each of these directories and runs this file from those directories (it outputs a file that I want it to save in that folder). I tried the function shown below but get an error saying that:

ERROR: IOError: could not spawn julia16 FileIwantToRun.jl: no such file or directory (ENOENT)

When I manually visit this folders and run julia16 FileIwantToRun.jl it runs without any issues. Can you please point out what I am doing wrong? Thank you.

function runfile()
    for dest in destdirs 
        println("Running file in $(dest)")
        cd(dest) do 
            run(`julia16 $(FileIwantToRun.jl)`)
        end
    end
end

I figured this out. The problem was that Julia did not know how to find julia16 binary. If I give full path to that binary, it works.

Maybe you want the path to your julia16 in your PATH environment variable.

C:\bin\julia>cat ..\here.jl
println("there")

C:\bin\julia>cat here.jl
println("here")

C:\bin\julia>julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0 (2021-03-24)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> for d in [".",".."]; cd(d) do; run(`julia here.jl`); end; end
here
there