The most common way to add an app to your desktop is through the Start menu or File Explorer.

if (-not $TargetPath) Write-Host "Drag and drop a file/folder onto this script." pause exit

The Windows 11 Start Menu is the fastest place to generate app shortcuts.

To , you can use several methods depending on whether you are linking an app, file, folder, or website. The most common method involves dragging an app from the "All apps" list directly onto your desktop wallpaper. Shortcuts for Applications

Convert the script to a .exe (using PS2EXE) and pin it to your taskbar.

: Open the Start Menu , click on All apps , then find your desired program. Click and hold the app icon, then drag it onto an empty space on your desktop.

$Desktop = [Environment]::GetFolderPath("Desktop") $Name = [System.IO.Path]::GetFileNameWithoutExtension($TargetPath) $ShortcutPath = Join-Path $Desktop "$Name.lnk"

This allows a user to open a specific URL directly from the desktop in their default browser.