创建快捷方式

$shell = New-Object -ComObject WScript.Shell
$desktop = [System.Environment]::GetFolderPath('Desktop')
$shortcut = $shell.CreateShortcut("$desktopSmartPanel.lnk")
$shortcut.TargetPath = "calc.exe"
$shortcut.IconLocation = "shell32.dll,22"
$shortcut.Save()
原文地址:https://www.cnblogs.com/IvanChen/p/4493746.html