How to start and stop a MS edge browserwindow from a VB script : So I want to start an MS Edge browser and close it after a few moments.
I've tried some things like the Microsoft Internet Controls.
But I need a different browser than the IE.

                Dim pi As New Process
                pi = Process.Start("shell:Appsfolder\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge",         
                Threading.Thread.Sleep(1000)
                pi.CloseMainWindow() -- NullReferenceException

But I always get a null reference exception even tho I've initialized it.
Can someone help?
Thanks in advantage
