You need to pass the filepath as a string:
julia> include(myfile.jl)
ERROR: UndefVarError: `myfile` not defined
Stacktrace:
[1] top-level scope
@ REPL[197]:1
julia> include("myfile.jl")
ERROR: SystemError: opening file "...\\myfile.jl": No such file or directory