Magic Commands cannot be parameterised. You can use another technique for parameterisation of the notebook.
Below command can be used to pass parameters while triggering a notebook.
mssparkutils.notebook.run("paramerterization_demo",300 {"person_name":"John", "person_age":"24"})
For more detail explanation, follow this article.