CmdID / PowerShell / Cmdlets / New
New-WindowsCustomImage
Captures an image of customized or serviced Windows components on a Windows Image File Boot (WIMBoot) configured device. Windows Server PowerShell reference
From the Windows Server PowerShell reference 7 parameters Its page in the reference
Parameters
-CapturePathSpecifies the drive or path to the Windows operating system that is to be captured to an image file.-CheckIntegrityDetects and tracks .wim file corruption when used with the Add-WindowsImage, Dismount-WindowsImage, or Save-WindowsImage cmdlet.-ConfigFilePathSpecifies the location of a configuration file that lists exclusions for image capture and compress commands.-LogLevel, -LLSpecifies the maximum output level shown in the logs.-LogPath, -LPSpecifies the full path and file name to log to.-ScratchDirectorySpecifies a temporary directory that will be used when extracting files for use during servicing.-VerifyChecks for errors and file duplication.