A few other alternatives for running external apps on Windows
SketchUp Ruby API’s UI::openURL
can start executables.
Example: from the Ruby Console in SketchUp 2022 I call this …
UI.openURL("file:///C:/Program Files/SketchUp/SketchUp 2017/SketchUp.exe")
… and after a few seconds an instance of SU2017 is loaded. (I have like 6 versions of SketchUp installed.)
Another example:
UI.openURL("file:///C:/Windows/notepad.exe")
… opens an instance of Window’s Notepad editor.
The Windows Scripting Host Shell Object can be used from within SketchUp using Ruby’s WIN32OLE
library.
require 'win32ole'
shell = WIN32OLE.new("WScript.Shell")
shell.Exec("calc")
… or …
shell.Run "cmd /K CD C:\ & Dir"