function execute($pid, $script) { $s = new Stop(); $s->Execute($pid, $script); $s = new Start(); $s->Execute($pid, $script); }