Same result, cmd.exe open but not as administrator same for notepad++.
I haven't had this problem on versions other than 22H2.
Local $sTaskName = "MaTachePlanifieeTEST"
Local $sTaskCommand = RunAs("administrateur",@ComputerName,"*****",0, "cmd.exe")
; Enregistre la tâche planifiée
RunWait(@ComSpec & ' /c schtasks.exe /create /tn "' & $sTaskName & '" /tr "' & $sTaskCommand & '" /sc minute /mo 1', "", @SW_HIDE)
If @error Then
MsgBox($MB_ICONERROR, "Erreur", "Erreur lors de la création de la tâche planifiée.")
Else
MsgBox($MB_ICONINFORMATION, "Succès", "La tâche planifiée a été créée avec succès.")
EndIf