How to run in 0.7 pkg mode by include() in script ? ] not works!

in 0.7 key “]” is starting Pkg mode… How to run this mode from script by include(“script.jl” ) ? After usingn script ] is ERROR: LoadError: syntax: unexpected “]”
Paul

You can using Pkg to get a pre-0.7 like way of using Pkg.

Pkg.pkg"add Distributions"

gives same effect as doing this from the (Pkg) prompt.