CmdID / PowerShell / Cmdlets / ConvertTo
ConvertTo-WebApplication
Converts an IIS virtual directory to an IIS web application. Windows Server PowerShell reference
From the Windows Server PowerShell reference 5 parameters Its page in the reference
Parameters
-ApplicationPoolSpecifies the application pool in which the application runs.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-ForceForces the command to run without asking for user confirmation.-PSPathSpecifies the configuration path.-WhatIf, -wiShows what would happen if the cmdlet runs.