To install the prerequisites via PowerShell, copy them to a single folder. You’ll want to fix-up the paths in this script, but you’ll need to call the prerequisites installer executable on the SharePoint 2019 ISO. In this particular case, I’ve copied the ISO contents to C:\SharePoint2019 and the prerequisites above to a subfolder called PrerequisiteInstallerFiles.

One other thing to note is as SharePoint Custom Help is no longer available, we no longer need to run Install-SPHelpCollection while creating or adding a SharePoint server to the farm. The complete set of commands to create a farm are now: