got working script to execute puppet apply