The PowerShell is available in different versions. To find out which version is installed on your system, you can investigate using O&O Syspectr in the Dashboard. Basically:

The different versions have partly different syntax and functions so that adjustments to the scripts for each version may be necessary.

Posted in: PowerShell