Handle nested post script arguments in the preprocessor

Fix for issue #4785
Merge pull request #4799 from chriskr/nested-ps-commands

Handle nested post script arguments in the preprocessor