diff --git a/docs/powershell/README.md b/docs/powershell/README.md new file mode 100644 index 0000000..697a992 --- /dev/null +++ b/docs/powershell/README.md @@ -0,0 +1,6 @@ +# Scripting tasks using PowerShell + +PowerShell is Microsoft’s scripting tool for automating tasks on every operating system. The current release uses .NET 5 as its runtime. Microsoft recommends Visual Studio Code with the PowerShell extension for writing PowerShell scripts. + +- [Installing PowerShell](install-powershell.md) +- [Exploring the PowerShell language](powershell-language.md) \ No newline at end of file diff --git a/docs/powershell/install-powershell.md b/docs/powershell/install-powershell.md new file mode 100644 index 0000000..79c29c4 --- /dev/null +++ b/docs/powershell/install-powershell.md @@ -0,0 +1,16 @@ +# Installing PowerShell and its Visual Studio Code extension + +You can install PowerShell by downloading the appropriate installation package for your operating system from the following link: + +https://aka.ms/powershell-release?tag=stable + +For example, for Windows 10 64-bit, you would download the file named `PowerShell-7.1.3-win-x64.msi`. + +On macOS, you can install PowerShell using Homebrew, as shown in the following command: +``` +brew install --cask powershell +``` +For Linux and ARM, use the instructions at the following link: +https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell + +Now you can install the Visual Studio Code extension for PowerShell. diff --git a/docs/powershell/powershell-language.md b/docs/powershell/powershell-language.md new file mode 100644 index 0000000..cb09f24 --- /dev/null +++ b/docs/powershell/powershell-language.md @@ -0,0 +1,7 @@ +# Exploring the PowerShell language + +Let's see some examples of what you can do with PowerShell: +1. In Visual Studio Code, +2. Enter a special command to see PowerShell information, as shown in the following command: +$PSVersionTable +3. \ No newline at end of file