Windows 10 - Cannot download via Command Prompt (multiple errors)

Hello! I just created an account, selected latest perl version and windows 10 platform.
Website offered me to copy this script to cmd.exe.

But when i pasted this code to cmd.exe, I got errors:

C:\Users\user>powershell -Command “& $([scriptblock]::Create((New-Object Net.Web
7983_pdli01/install.ps1’))) -c’state activate --default cartez80/Perl-5.34.0-Win
Exception calling “DownloadString” with “1” argument(s): “The request was
aborted: Could not create SSL/TLS secure channel.”
At line:1 char:5

  • & $([scriptblock]::Create((New-Object
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

The expression after '&' in a pipeline element produced an object that was not
valid. It must result in a command name, a script block, or a CommandInfo
At line:1 char:3
+ & $([scriptblock]::Create((New-Object
Net.WebClient).DownloadString('https://pla ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : BadExpression

This installation process is weird. Can’t get this working on Win10:(

At last, I managed this to work. The error was in SSL/TLS (maybe that’s because of using VPN)

I know my answer may be deleted but I would like to share my soulution which helped me:

1.first off I checked source: hxxps://

and build my $zipUrl from it: hxxps://

This is the actual installer which is for some reason is hidden in scripts.
I downloaded it.

then in Cmd.exe I manually set ENV variable from

set ACTIVESTATE_SESSION_TOKEN=270716012.1652997983_pdli01

then I cd to download dir and ran installer:

█ Installing State Tool Package Manager

The State Tool lets you install and manage your language runtimes.

ActiveState collects usage statistics and diagnostic data about failures.
By using the State Tool Package Manager you agree to the terms of ActiveState’s
Privacy Policy,
available at: Privacy Policy/Statement - ActiveState

Downloading State Tool version 0.33.0-SHA7b42690… ? Done
Installing State Tool to C:\Users\user\AppData\Local\ActiveState\StateTool\rele
ase… ? Done

█ State Tool Package Manager Installation Complete

Now install seems to be complete.

And the last step was to run in Cmd.exe:

state activate --default cartez80/Perl-5.34.0-Windows

Now this seems to be installing all stuff:

Compatibility Warning
Warning: State Tool is untested on Windows versions below 10. If you encounter i
ssues please consider reporting them on

█ Creating a Virtual Environment for your Project’s Packages

This project will be set as the default, meaning you can use it from anywhere on
your system without activating.
Installing ? 70/137 [=================>-----------------] 51 %

Hope this helps.

Your successful workaround suggests that either:

  • Your version of Powershell and .NET are too old (20H1 or higher are strongly recommended)
  • Your Powershell is constrained by local policy settings.
    The session token variable isn’t one we’ve documented, because it shouldn’t be necessary to set if HTTPS is operating correctly.
    There are some networking troubleshooting steps: I don’t know if you found them or not, but they are in the online documentation:
    Network Configurations :: ActiveState Platform Documentation

The steps you found by searching the source code are described in the manuals online. To help others find the manuals quickly, they are here:

The command to install State Tool separately is:

and the specific command to “activate” your project is here:

1 Like