modified blockAppointment to handle LinuxGTM and Windows