Calling a C library from within the image: see FFI.
Command Line: OSProcess and friends can do things like: