---
updatedAt: 2025-08-14T13:35:24.000Z
agentTools:
  siteIndex: https://developer.n-able.com/llms.txt
  projectIndex: https://developer.n-able.com/n-central/llms.txt
---

# Create Windows Shortcut with Parameters or Arguments (PS1)

```powershell Automation Policy

$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut("c:\marc\test.lnk")
$Shortcut.TargetPath = "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
$Shortcut.Arguments = "www.google.nl"
$Shortcut.WorkingDirectory = $RunPath
#$Shortcut.IconLocation = -join($RunPath,"\Notepad++.exe",", 0")
$Shortcut.Save()

```

```json Response Example
{"success":true}
```

# SCRIPT