Private/Copy-DesktopShortcut.ps1


function Copy-DesktopShortcut {
    param (
        [string]$AppDataRoamingPath,
        [string]$LogPath,
        [string]$DesktopShortcutPath
    )

    if ($null -ne $DesktopShortcutPath) {
        Copy-Item -Path $DesktopShortcutPath -Destination $AppDataRoamingPath -Force
        Write-Log -Message "Copied Desktop create shortcut to SendTo." -LogPath $LogPath
    } else {
        Write-Log -Message "Desktop shortcut path is null, skipping copy." -LogPath $LogPath
    }
}