KWin scripts donât work like that. You donât âinvokeâ them - they are always running. What you can do - if you want to send parameters to a script - is to create an ad-hoc script, load it using the KWin D-Bus interface and then run it using another D-Bus command.
### create /your/script with all the options, then
num=$(qdbus org.kde.KWin /Scripting org.kde.kwin.Scripting.loadScript /your/script)
qdbus org.kde.KWin /$num org.kde.kwin.Script.run
sleep 5
qdbus org.kde.KWin /$num org.kde.kwin.Script.stop