Perl 5.32 Installation fails under Windows 10

I’m attempting to install Active Perl 5.32 under Windows 10 1909.

I copy and paste this command into CMD:

powershell -Command "& $([scriptblock]::Create((New-Object Net.WebClient).DownloadString(''))) -activate-default ActiveState-Labs/Perl-5.32"

I get this error:

Exception calling "DownloadString" with "1" argument(s): "The underlying connection was closed: An unexpected error
occurred on a send."
At line:1 char:26
+ ... ommand "& $([scriptblock]::Create((New-Object Net.WebClient).Download ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

& : The term '-activate-default' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:4
+ &  -activate-default ActiveState-Labs/Perl-5.32
+    ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (-activate-default:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

I feel like I must be missing something simple. Any suggestions?


HI @jmorgan-siumed , Thank you for posting here ! The team will have a look and advise accordingly.

Hi @jmorgan-siumed ,

Could you share the Powershell version that you have installed? Instructions:

  1. Open Powershell
  2. Type or copy-paste the following command: Get-Host | Select-Object Version
  3. In the output, you will see the version of PowerShell
  4. Alternatively, type $PSVersionTable and hit the Enter key
  5. See the PSVersion line

The standard version of Powershell that was shipped with version 1909 is missing some of the commandlets that have been added in newer releases.