I want to use wolframscript to run wls files. however, after I type wolframscript -file filename.wls, the cmd runs for a while but gives no answer.
Wrap Print around the final output of the .wls file. Like Print[RandomReal[]]
Print
Print[RandomReal[]]