PS
                                                      (Power Shell Script Programming)
                                                                 Networking
                                                          (Component Object Model)
                                                                  Winforms

CMD icon indicates that a command line script maybe launched.

Command Line Script
This is not a PowerShell script.
This Command Line script will check the
PowerShell Version installed.



Script Code:

@echo off
echo Checking powershell version...
del "%temp%\PSVers.txt" 2>nul
powershell -command "[string]$PSVersionTable.PSVersion.Major +'.'+ [string]$PSVersionTable.PSVersion.Minor | Out-File ([string](cat env:\temp) + '\PSVers.txt')" 2>nul
if errorlevel 1 (
 echo Powershell is not installed. Please install it from download.Microsoft.com; thanks.
) else (
 echo You have installed Powershell version:
 type "%temp%\PSVers.txt"
 del "%temp%\PSVers.txt" 2>nul
)
timeout 15