#
PowerShell 7.5
OSD.Workspace was developed for use with PowerShell 7.5. Other versions of PowerShell are untested and unsupported. Since PowerShell 7.5 is required, the OSD.Workspace module will not even load on PowerShell 5.1.
# Install PowerShell 7.5
winget install -e --id Microsoft.PowerShell --override '/Passive ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1 ADD_PATH=1'
Additionally since most DISM functions require Admin Rights to run properly, you will need to run PowerShell as an Administrator for most OSD.Workspace functions.