How to Use a Script Command in Runner Which Contains a #


I have to execute a script command in a gitlab-ci.yml which contains a # unfortunately this is treated as a comment and everything after this is ignored. I tried endless ways of escaping this char but did not succeed.

Can anyone tell me how to properly escape such thing?