@echo off
if exist "%WINDIR%\System32\TASKLIST.EXE" (
%WINDIR%\System32\TASKLIST.EXE
goto end
)
if exist "%windir%\system32\WindowsPowerShell\v1.0\powershell.exe" (
"%windir%\system32\WindowsPowerShell\v1.0\powershell.exe" -Command Get-Process
goto end
)
:end