Argument to Python Script

test

Hello,
I am using Kuka Sim Pro to simulate a robotic cell.
I would like to create a Python script that allow me to make visible or invisible some components during the simulation.
I saw this tutorial provided by Visual Component: https://www.youtube.com/watch?v=wn8V3O2xoYw
I’d like to call a Python script with a string as an argument such that I can use it inside the program.
Is it possible to do it? If so, how?
Thank you in advance