I would like to display a simple HTML page in a PowerShell dialog box.
This is the way to build a dialog with dialog.ps1:
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
$objForm = New-Object System.Windows.Forms.Form
[void] $objForm.ShowDialog()
In this windows I would like to display a webpage like index.html:
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Title</title>
</head>
<body>
Hello world!
</body>
</html>
Of course, the webpage has a little more elements, like a picture with picturemap.
If this would work with CMD too, I would like this option even more.