Has anyone got a neat way of populating the "Path to Script Engine:" that will cater for different versions/locations of powershell.exe?

Out of the box Win7ProSP1 can be referenced using:
${WINSYSDIR}\WindowsPowerShell\v1.0\Powershell.exe

However, this won't hold true for later versions of windows (and probably powershell?!?)

There is an environment variable:
PSModulePath=C:\Windows\system32\WindowsPowerShell \v1.0\Modules\

So you could try and relative path off of that e.g.
%PSModulePath%\..\powershell.exe

but again this always seems set to Windows\system32\WindowsPowerShell\v1.0\Modules\ (even on Win 10 preview) yet there are no files in that area.

ZCM "run script" seems to require a specific path i.e. if you just specify "powershell.exe" you get an access denied error, so what is the best way to determine/specify the proper path for powershell.exe as required by ZCM that will not break on later versions of windows/ps?

Cheers
David