Forrest logo
back to the powershell tool

powershell:tldr:4e95f

powershell: Start a session with a specific version of PowerShell.
$ powershell -Version ${version}
try on your machine

The command "powershell -Version ${version}" is a command used in PowerShell, a command-line shell and scripting language developed by Microsoft. It is used to launch a new instance of the PowerShell environment with a specific version.

In this command, "${version}" is a placeholder indicating that a specific version number needs to be provided. The user needs to replace "${version}" with the actual version number they want to use.

For example, if you want to launch PowerShell version 7, you would replace "${version}" with "7", resulting in the command "powershell -Version 7". This would open a new PowerShell session with version 7.

Different versions of PowerShell may have varying features, functionalities, and compatibility with different modules. The "-Version" parameter allows users to specify which version they want to use, ensuring compatibility with specific scripts or modules that may require a particular version of PowerShell.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the powershell tool