Automatically run PowerShell script at first boot
Solution 1:
Have you looked at creating an OnStart scheduled task?
SCHTASKS.EXE /CREATE /F /SC ONSTART /RU Administrator /RP password!!! /TN "First Boot" /RL HIGHEST /TR "Powershell.exe -ExecutionPolicy Bypass -File C:\FirstBoot\FirstBoot.ps1 "
You do need to have a command at the end of the script to remove this task
SCHTASKS.EXE /DELETE /F /TN "First Boot"