Run commands synchronously using execSync