Hi,
For a shorter one, you can refer to below
# .NET Features
Install-WindowsFeature -Name NET-Framework-Features
Install-WindowsFeature -Name NET-Framework-Core
Install-WindowsFeature -Name NET-Framework-45-Features
Install-WindowsFeature -Name NET-Framework-45-Core
Install-WindowsFeature -Name NET-Framework-45-ASPNET
Install-WindowsFeature -Name NET-WCF-Services45
Install-WindowsFeature -Name NET-WCF-HTTP-Activation45
Install-WindowsFeature -Name NET-WCF-TCP-PortSharing45
# Install IIS Web Server Role
Install-WindowsFeature -Name Web-Server -IncludeManagementTools
Install-WindowsFeature -Name Web-WebServer
# Application Development
Install-WindowsFeature -Name Web-ISAPI-Ext
# Security
Install-WindowsFeature -Name Web-Windows-Auth
# Management Tools
Install-WindowsFeature -Name Web-Mgmt-Tools
Install-WindowsFeature -Name Web-Mgmt-Console
Install-WindowsFeature -Name Web-Mgmt-Compat
Install-WindowsFeature -Name Web-Metabase
Install-WindowsFeature -Name Web-WMI
# Install Background Intelligence Transfer Service (BITS)
Install-WindowsFeature -Name BITS
Install-WindowsFeature -Name BITS-IIS-Ext
And for a full featured one, you can try this
https://codeandkeep.com/PowerShell-SCCM-Offline-PreRequisites-Install/
Also, as another option, you can try the prerequisites tool
https://github.com/MSEndpointMgr/ConfigMgrPrerequisitesTool/releases/download/3.0.6/ConfigMgr.Prerequisites.Tool.3.0.6.zip
Regards,
Alex