PowerTip: Run Part of PowerShell Command

The Scripting Guys

Dr Scripto

Summary: Learn how to run part of a command in the Windows PowerShell ISE.

Hey, Scripting Guy! Question 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?

Hey, Scripting Guy! Answer 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.

The Scripting Guys
Dr Scripto

Follow Dr Scripto   

No Comments.