I am building an IIS website using the PowerShell New-WebSite cmdlet, and in this web application using New-WebApplication .
SSL settings for the web application must be configured to require SSL; Require as shown below.

For consistency, I would like to do this using only PowerShell cmdlets.
Requiring SSL is easy; you just add the -Ssl parameter to New-WebSite .
However, the only way we set the Require parameter is to use Appcmd.exe :
& $env:SystemRoot\System32\inetsrv\Appcmd.exe ` set config "$WebSiteName/$VirtualDirName" ` /section:access ` /sslFlags:"SslRequireCert" ` /commit:APPHOST
Is there an alternative to PowerShell?
source share