CliScript implementation