I've had mixed results with trying to stop a script with either a 'stop' statement or pressing Ctrl-C. If the channel exits back to the home screen, you're done. If the channel remains displayed, then you enter commands from the console. I haven't found any pattern as to why sometimes I can break and remain in the channel and other times it exits the channel.
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution." If you appreciate my answer, maybe give me a Kudo.