use arg parsing macros for WaitExten and Background (issue #6185)