From there - The story you're referring to was one of the 'segments' in the 1978 made-for-TV anthology horror film "Alien Zone" (otherwise known as "House of the Dead").
A man working in an office just doesn't get along with people...Later, a crazy-looking homeless person approaches the man, who yells "Why don't you get a job!?"
Cranky Office Man inexplicably enters an empty storefront and gets locked in. Then he inexplicably falls down an open elevator shaft. It seems that Cranky Office Man has fallen into a trap that's sort of a prototype of those found in the Saw movies
Walls begin to move and he almost gets impaled on some magically-appearing nails- they stop short of killing him, however, and this causes Cranky Office Man's brain to break- we assume anyway. It's never really explained. Whoa, deja vu!
Some bottles of wine then roll into the room and I guess Cranky Office Man has no choice but to drink them all.
As Cranky Office Man lies sleeping it off, a wall raises and Cranky Office Man is free to go. However, now he's all dirty and drunk and crazy- and when he approaches a man in a suit, the man says...yes...wait for it... "Why don't you get a job!?"