I figured out how to get the task sequence to run the powershell script. the only issue I cannot resolve is setting the start time later to allow for a restart of the computer.
I added to the script to send me an email with the variable $currentime for time + five minutes included in the email, that worked perfect. I just cannot get the schtasks.exe to use the variable $currenttime.
C:\windows\system32\schtasks.exe /Create /sc once /TN "mapped" /TR "\server-name\share-name\21H2\fakeone.bat" /st $currenttime /RL HIGHEST
I need the /st to use the time plus 5 minutes.
thanks