Dear team,
please consider adding #Requires -Edition (Desktop | Core) statement for scripts that are not compatible with Core and still requires Desktop version to run.
It would be great to write
#Requires -Edition Desktop
instead of
if($PSVersionTable.PSEdition -eq 'Core')
{
throw "Doesn't work with PowerShell Core. Please use Windows PowerShell."
}
Dear team,
please consider adding
#Requires -Edition (Desktop | Core)statement for scripts that are not compatible with Core and still requires Desktop version to run.It would be great to write
#Requires -Edition Desktopinstead of