Implement simple OS-specific command dispatch.