made the cli script runner work on upperlevel. Worked on Query, but not satisfied yet