Outro script PS para hospedar um aplicativo .NET 4.x usando Mono / XSP

$XspHostAddress = "127.0.0.1"
$XspHostPort
= "8000"
$WebAppRoot
= "Path/To/App/Root"

function Debug
{
Invoke-Expression 'xsp4 --address $XspHostAddress --port $XspHostPort --root "$WebAppRoot"'
}

function LaunchBrowser
{
$browser
= New-Object -ComObject InternetExplorer.Application
$browser
.Navigate2([String]::Format("http://{0}:{1}", $XspHostAddress, $XspHostPort))
$browser
.Visible = $true
}

LaunchBrowser
Debug