Hi,
For this issue, perhaps we can try to use the "Run Task Sequence" step to select the OSD task sequence to run after disabling the UWF script and restarting the computer.
Like the screenshot below:
For more details about the step, please refer to this article:
https://learn.microsoft.com/en-us/mem/configmgr/osd/understand/task-sequence-steps#child-task-sequence
Hope this thought can help you.
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.