@AliSarhan11 Could you please refer below and create your script:

Note:
1. You will have more 'Populate text in window' commands as you have many inputs for Journal Voucher
2. Screenshot logic should be good enough for you to create your own script.
Should you require any more information, do let me know.
Cheers,
Ankesh
--------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.