Temazepam, sold under the brand names Restoril among others, belongs to a class of medications called benzodiazepines. It works by…