Hello KaFu!
I'm sorry to bother you
I come from China
my English is poor, on the api do not know
Just run your script
the results are:
Something went wrong...
Error code: 3
1058
Can not start service, probably due to have been disabled or no enabled devices associated.
I found the problem here: (204 lines)
$aRet = DllCall("advapi32.dll", "bool", "CreateProcessWithTokenW", "handle", $hDupToken, "dword", 0, "wstr", $sPath, $sCmdType, $sCmd, _
"dword", 0, "ptr", 0, $sFolderType, $sFolder, "ptr", DllStructGetPtr($stStartupInfo), "ptr", DllStructGetPtr($stProcInfo))
>>$aRet[0]=0