What is the cholinesterase inhibitor with intermediate duration of action that is used off-label for postoperative paralytic ileus and urinary retention?