Here are two ways to go about it:
- With a system() function
- With a compute() function
Both of them can get the same job done, the only difference is that system() returns a value, indicating if the command was executed successfully,and holds the result of the executed command.
Whereas compute() just executes the command with no return value.
For example, when trying to run a python script with arguments inside a test, you could do: