Imagine you have worked long hours on a script in the ISE editor. While you worked on it, you probably have defined variables, created functions, loaded objects, and more.
To make sure your script really works the way intended, your final test should occur in a clean environment.
The easiest way to get a fresh PowerShell and remove all variables and functions works like this:
Inside the ISE editor, choose File > New PowerShell Tab. This adds a new PowerShell tab which in reality is a new and fresh instance of the PowerShell host. Copy and paste your script to a Script Pane inside of the new tab, and run it there. This will make sure there are no unwanted interactions with old variables and functions.