Script Parameter commend field

Hello,

is it possible to pass the comment field to a script?
Background: In the case of a soft delete, a ticket is left in the comment field. This link should be transferred to a ps1 script and sent by email.

If this is not possible, is there an other solution for this problem?

Best regads
Tobias