I found the solution:
The problem is, that the datatypes not the same if you are using your own variables
The datatype from the constants is LONG so you have to convert your variable.
when you run it from wsf file with the vix constants all subtypes of the variables are LONG but in this sample it is only necessary to convert the JOB_RESULT_HANDLE to avoid the error.
JOB_RESULT_HANDLE =3010
VMPOWEROP_LAUNCH_GUI=512
API_VERSION=-1
SERVICEPROVIDER_VMWARE_WORKSTATION=3
JOB_RESULT_HANDLE=clng(JOB_RESULT_HANDLE)
WScript.Echo("ApiVersion " & API_VERSION &" JobResultHandle " & JOB_RESULT_HANDLE &" ServiceProviderVMWareWorkstation " & SERVICEPROVIDER_VMWARE_WORKSTATION & " VMPowerOPLaunchGui "& VMPOWEROP_LAUNCH_GUI)
WScript.Echo("ApiVersion " & vartype(API_VERSION) &" JobResultHandle " & vartype(JOB_RESULT_HANDLE) &" ServiceProviderVMWareWorkstation " & vartype(SERVICEPROVIDER_VMWARE_WORKSTATION) & " VMPowerOPLaunchGui "& vartype(VMPOWEROP_LAUNCH_GUI))