I have an OSD task sequence which one of the steps runs a package containing the PowerShell DSC '.ps1' file and the '.MOF' configuration. Now during the task sequence it looks like it can't find the Modules I want to install on the NuGet provider and after logging in it's clear with the Get-PackageProvider command that it doesn't exist however the output of the SMTS log shows the output of NuGet as if it was installed.
I am using SCCM 1902 and am using the new PowerShell Script task sequence step and the script is running in Bypass mode and once I log in I can run the script manually without issue.