Practical Bayesian Algorithm Execution via Posterior Sampling