The following example is specific to Windows:
Dim taskId As Variant taskId = Shellid("notepad.exe") Print "Running task " & taskId