Hi,
Yes it is possible to provide a variable at the start of the script and pass it in the command. Please check this article for detailed steps.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.
----
please don't forget to upvote and Accept as answer if the reply is helpful