Script RunAS Credential Error

Product: PowerShell Universal
Version: 4.0.8

Hello,

I’m trying to start a script with a specific AD Credential from a Forms Pages and i always receive this error : Error executing job: Object reference not set to an instance of an object.

So i have :

  1. A page with a forms with some input text
  2. The button of this forms call a script. ( RunAS with specific credential and environmment set to Powershell 5.1)
  3. I create a Secret Variable with PSCredential , AD Domain account, store in BuilintLocalVault
  4. I put this AD Account as local administrators on PSHU Server but not better.

I guess the script never start because i just put a “write-output” and nothing is displayed.

Could you please help me ?

Thanks