The token ‘&&’ is not a valid statement separator in this version in vs code terminal [duplicate]

could you please check your PowerShell version using the following command

$PSVersionTable.PSVersion

As far I know, one of the new features of Powershell 7.0 is Pipeline chain operators: && and || so this should work only on powershell 7

Ref: https://docs.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-70?view=powershell-7

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top