There are two ways to get a SKILL file to immediately execute. The first is to put the code you want to execute in a procedure declaration in the file and then execute the procedure at the end of the file. This lets you execute the procedure again without re-loading the file by typing in the procedure name and its arguments.
procedure( myProc(....) ... )
The second way is to have your SKILL code in a file not inside a procedure declaration. When you load the file, the code is evaluated. This is the way .cdsinit files work. However, the code is not captured in a function so must be loaded each time to evaluate it.
To capture the user entered data from the CIW, use an enterFunction such as enterString. The enterFunctions are very powerful and can be used with preprocessing and postprocessing functions.