modefied suspend script to execute the command when only running