In this chapter we will discuss what PowerShell is and do a quick review of its history. We’ll describe the two PowerShell environments, which are the Command Line Interface (CLI) and the Integrated Script Editor (ISE). The PowerShell CLI is used for the immediate execution of commands entered at a prompt. The ISE is the PowerShell development environment and is intended for the creation and debugging of scripts. By default, PowerShell will not allow scripts to be executed. Therefore, we will discuss how to enable scripting. Then we will discuss using the ISE to write scripts. We’ll review how we can customize the ISE settings to fit our needs. Then we’ll run a script with a bug in it to see how PowerShell displays error messages.