Visual Studio Code and the PowerShell extension are built for PowerShell code. Now's the time to start using it!Įven though you can technically write a script with notepad, it's not a wise decision. In a previous post in this series, you learned how to install Visual Studio Code.
When PowerShell executes a script, it starts at the top and makes its way down to the bottom until it has run all of the code in the script. What's a script? In PowerShell terms, a script is a combination of commands all working together to be run at one time.Ī script can be one to thousands of lines long. PowerShell is called a scripting language for a reason - you write scripts with it. That's fine if you need to bang out a quick command to do something simple but the console's going to fall short for more advanced tasks. You've been manually typing in commands, running them and seeing what comes back. Throughout this series, you've been in the PowerShell console.
Running PowerShell Commands and Getting Help Installing PowerShell and Visual Studio Code Windows PowerShell, PowerShell Core and PowerShell: Huh? If you'd like to catch up (or skip ahead - more posts coming soon), click on the appropriate post below. *If you're just joining us, this post is part of a 12-part series on Getting Started with PowerShell.