... is possible since 2022 R2, just in case you did not know, see also this article in the scripting forum.
Regards
Jan