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
CLICK HERE to find out more related problems solutions.