Hi @Daniel Kaliel,
Please press F8 when the task sequence execution fails to check if it boots to Windows PE. If so, please help check the steps above for running PowerShell script, it may be due to any steps booted it into Windows PE.
This similar threader for your reference:
Looking forward to your feedback.
Best regards
Cherry
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.