The scilab command file is referred to as a script. It is given an extension .sce if it is a main file, and .sci if it is a function file.
Go to Launch SciNotes > then Type your commands and save the file with extension .sce
For storing and executing the commands in a file, use scinotes.
To create a scinote, type scinote on a Scilab console. After completing a program save that file with extension .sce and hit the execute button (CTRL + L).