pub fn spawn(command: &str, args: &[&str]) -> Result<SyncSession>
Spawn a session synchronously.
Returns an error if spawning fails.