This is a new way that I have never seen before. I did it today.
How it works? The lines written below are used as file names. The file extension is unimportant or may not exist at all. It is important to right-click to launch the file using Windows Powershell.
For permanent use, I doubt it, it is necessary to use a rare extension. For example, .zzz and register it as constantly opened using Powershell.
to open a directory C:\Windows
(New-Object -ComObject Wscript.Shell).Run('explorer C'+[char]58+[char]92+'Windows'+[char]92,1,'false')
to start C:\Windows\notepad.exe
(New-Object -ComObject Wscript.Shell).Run('explorer C'+[char]58+[char]92+'Windows'+[char]92+'notepad.exe',1,'false')
(New-Object -Com WScript.Shell).Exec('notepad')
to open https://github.com
(New-Object -ComObject Wscript.Shell).Run('explorer https'+[char]58+[char]47+[char]47+'github.com',1,'false')
msgBoxs
-c (New-Object -ComObject Wscript.Shell).popup('ItsFunny!',0,'☺')
-c ((New-Object -ComObject ('htmlfile')).parentWindow).alert('☺')