You don't.Once the script has ended, nothing more is being done by that process, soit dies. A process that no longer exists can't have a current workingdirectory.