Vcenter customization startup script doesnt run

Hi all, I’m having issues running a vcenter customization for my nebula setup. My customization has two powershell scripts, the first joins the machine to the domain and corresponding OU, the second installs an application that is needed for the machine.

The domain join part works, the machine restarts and auto login is set again so it can run the next script, however the next ps1 doesnt run, there is no log output that it failed. Basically no feedback I can see. If i run the same customization through vcenter it works with no issue. Any thoughts?