while in the sccm->tab (installation program) this is the command line:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command “& { & ‘.\Deploy-Application.ps1’ -DeployMode ‘Silent’ -AllowRebootPassThru; Exit $LastExitCode }”
I don’t think this is a psappdeploytoolkit issue. However I think you are running the .exe you download from SAP. Try extracting it with 7zip or similar first and then run nwsapsetup.exe like Baba suggests. That should do it.
If you have any customizations you want to perform (reducing the installed options for instance) then run nwsapsetupadmin.exe and create the payload there.
RE: weird exit code
SAP installer was created in the 80s. They have such a monopoly in their field that they don’t care about modernizing their installer. They chose 129 years before MSI was an idea.
This is the command line I used on v7.4 3+years ago.