# Desktop app Testing - unable to pass \[command line\] argument during script execution

**URL:** <https://forum.katalon.com/t/desktop-app-testing-unable-to-pass-command-line-argument-during-script-execution/134281>\
**Category:** Desktop Testing\
**Tags:** command, desktop, desktop-appliation-t, apparguments, desktop-spy, command-line, desired-capabilities, katalon-studio\
**Created:** [June 11, 2024, 10:41am UTC](https://forum.katalon.com/t/desktop-app-testing-unable-to-pass-command-line-argument-during-script-execution/134281 "2024-06-11T10:41:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SJYogesh](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/sjyogesh/32/27791_2.png) [@SJYogesh](https://forum.katalon.com/u/SJYogesh)\
**Post date:** [June 11, 2024, 10:41am UTC](https://forum.katalon.com/t/desktop-app-testing-unable-to-pass-command-line-argument-during-script-execution/134281/1 "2024-06-11T10:41:52Z")

</div>

Hello Developers,

**Can anyone know how to pass the appArguments to desired capabilities in project settings via global variable dynamically on each execution?**

I can pass the command line arguments with the **desired capabilities** , but it works only in object Record / Spy. at the runtime(while execute the script) command line is not working

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [June 11, 2024, 10:41am UTC](https://forum.katalon.com/t/desktop-app-testing-unable-to-pass-command-line-argument-during-script-execution/134281/2 "2024-06-11T10:41:52Z")

</div>

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.

Thanks!

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [June 12, 2024, 3:01am UTC](https://forum.katalon.com/t/desktop-app-testing-unable-to-pass-command-line-argument-during-script-execution/134281/3 "2024-06-12T03:01:54Z")

</div>

Hi @SJYogesh,

There are a lot of experts here willing to help you

---

<div class="post-metadata">

**Author:** ![SJYogesh](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/sjyogesh/32/27791_2.png) [@SJYogesh](https://forum.katalon.com/u/SJYogesh)\
**Post date:** [June 17, 2024, 6:32am UTC](https://forum.katalon.com/t/desktop-app-testing-unable-to-pass-command-line-argument-during-script-execution/134281/4 "2024-06-17T06:32:29Z")

</div>

Hello experts, Does Anyone have any ideas?

Many thanks for considering my request.
