echo off
rem ****************************************************************************
rem Run this cmd program in a DOSBOX as admin. If not enough rights to execute
rem a PS1 script; Start Powershell as admin. 
rem Set-ExecutionPolicy -List
rem Enable execution policy rights with:
rem Set-ExecutionPolicy RemoteSigned
rem 
rem Start a PowerShell script given as a parameter after runPS.cmd
rem Usage: start filter<enter> %1 is here .ps1 script without the .ps1 extention.
rem        ScriptName is suffucient. The ".\"name".ps1" will be added later on.
rem ****************************************************************************

echo =============== Starting PowerShell to run .\%1.ps1 ==================
C:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe .\%1.ps1
echo ========================== PowerShell ended ===============================
pause