// See https://aka.ms/new-console-template for more information using System.Runtime.InteropServices; if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { string path = Path.Combine( Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "ethical.lnk"); dynamic WScriptShell = Microsoft.VisualBasic.Interaction.CreateObject("WScript.Shell", ""); dynamic Shortcut = WScriptShell.CreateShortcut(path); Shortcut.Arguments = "-Command \"Add-Type -AssemblyName System.Windows.Forms; " + "[System.Windows.Forms.MessageBox]::Show('ethical.blue Magazine'," + "'ethical.blue', 'OK', 'Information');\""; Shortcut.Description = "ethical.blue Magazine"; Shortcut.TargetPath = "%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"; Shortcut.Save(); }