Refactor console script arguments