Promt to work with AntiGrivity to generate install.ps1
------
I want to generate a powershell script to install my Asp.net application built in .net framework 4.7, the script file named install.ps1, its syntax is:
	install.ps1 -user app-svc -password some_password -appdomain contoso.com -srcdir "C:\code\IIS\caapi" -webdir "C:\WepApps\IIS\caapi" -tls true
	
The script will be used in a Windows Server 2022 domain member IIS web server, it does:
a. Create a domain user specified by the "-user" argument, please note that it is a domain user of the local domain. Put the user in the group that has rights to run a web application in IIS.
b. Create an IIS application pool called caapi that has the Identity is right the user created in the previous step. 
c. Create a folder specified in the "-webdir" argument, copy the content of the application in the folder specified by the "-srcdir" argument to the destination folder specified in "-webdir" argument, and then create a IIS Web Application that its web folder is right the folder specified by the "-webdir" argument, the IIS Application pool to run the application is right the IIS Application pool called caapi created in the previous step. The domain for the application is specified in the "-appdomain" argument.
d. if the tls is true and the Microsoft ADCS CA is ready, then request a SSL certificate for the domain or generate a self-signed SSL certificate if the Microsoft ADCS CA is not ready, and then bind the SSL certificate with the application.
e. After the deployment, generate a guid value, and then add a tag inside the <appSettings> tag in the web.config file as follows:
<appSettings>
  <add key="the GUID value is generated" value="1"/>
</appSettings>