Capture PS output; Remove debug check on environment vars