How to add inline JS code in Drupal CKEditor 5?

Trying to add my JS code to custom block in Drupal 9.5.3 with CKEditor 5. But JS code is not running there.

custom block

I tried adding code using code button in tool bar of CKEditor. But doesn’t working.

In the older version of Drupal 8 I used to write the JS script in the custom clocks itself.

So, How can I add my JS scripts in editor itself?