Rule Based System Script Generator