Script execution from scheduler working, but crude