This method is best for creating shortcuts to system tools that do not appear in the Start Menu (e.g., specific Control Panel applets or Network paths).

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