$SourceFilePath = "$($env:LOCALAPPDATA)\KeySignConnector\t1c-launch.exe" $ShortcutPath = "$($env:APPDATA)\Microsoft\Windows\Start Menu\Programs\Startup\t1c-launch.lnk" $WScriptObj = New-Object -ComObject ("WScript.Shell") $shortcut = $WscriptObj.CreateShortcut($ShortcutPath) $shortcut.TargetPath = $SourceFilePath $shortcut.Save()