docs/commands/script/scriptrun.md
Run the currently loaded script from the current position.
arg1 (optional) Line number to stop execution at. If not provided, the script runs until completion.
This command does not set any result variables.
This command blocks until the script completes execution, reaches the specified stop line, encounters an error, or is manually aborted. Script execution is handled by a single dedicated thread, ensuring that only one script runs at a time.
A script must be loaded using scriptload before using this command.