pebble run and log bash function