PowerShell Version Issue

In trying to run some PowerShell scripts with HP SA 10.20 I am running into a problem.

The script needs version 4 or better of PowerShell but the detected version is 2.0.  Version 5 is actually installed.

If I run the PowerShell command "$PSVersiontable" on one Windows 2012 server it reports as shown:

Name                       Value
----                       -----
CLRVersion                 2.0.50727.8009
BuildVersion               6.1.7601.18606
PSVersion                  2.0
WSManStackVersion          2.0
PSCompatibleVersions       {1.0, 2.0}
SerializationVersion       1.1.0.1
PSRemotingProtocolVersion  2.1

Other servers report the correct version as shown:

Name                      Value
----                      -----
PSVersion                 5.0.10586.117
PSCompatibleVersions      {1.0, 2.0, 3.0, 4.0...}
BuildVersion              10.0.10586.117
CLRVersion                4.0.30319.42000
WSManStackVersion         3.0
PSRemotingProtocolVersion 2.3
SerializationVersion      1.1.0.1

Both servers are 2012 r12 with PowerShell 5.0 installed.

Why does one report version 2 of PowerShell and the other report version 5?