Summary: Learn how to run part of a command in the Windows PowerShell ISE.
I am having problems with a small part of a script that I am working on in the Windows PowerShell ISE—
how can I test only that code?
Highlight only the portion of the script you want to test, and press the F-8 key or the small green triangle on the
toolbar (or select Run Selection from the File menu). Only the section of code that you highlighted will run.