Datasheet

12 CHAPTER 1
WHAT IS POWERSHELL, AND WHY DO YOU NEED IT?
with the
Get-PSBreakpoint
cmdlet for any of your PowerShell scripts. Figure 1.8
shows an example of a debugging session from the PowerShell console.
FIGURE 1.8 Debugging session in PowerShell
To learn more about the ISE, see Chapter 2 and Chapter 5. Chapter 2 shows you
how to install the ISE, which may not be installed by default. Chapter 5 shows how
to use this tool when working with PowerShell scripts.
Another way PowerShell leverages the Windows GUI is with the output cmdlet
Out-GridView
.  is cmdlet allows you to take the output from a PowerShell com-
mand and display it in a Windows Explorer–style window, which not only displays
your data but also allows you some interaction such as sorting and quickly  ltering
the data. For example, if you ran the command
Get-Process | Out-GridView
,
your results would look similar to Figure 1.9.
You can click any of the column headings in the
Out-Gridview
window, and the
content will be sorted. You can also quickly  lter the data by either adding criteria
or typing in the Filter text box. Chapter 4 takes a look at the
Out-GridView
cmdlet
as well as other ways to work with data from your PowerShell commands.
c01.indd 12c01.indd 12 4/18/2011 10:27:18 AM4/18/2011 10:27:18 AM