First of all, thank you for developing this great package, which allows me to work with PowerShell using a fast and lightweight editor.
PowerShell 7.3 introduced the control keyword clean, which defines a block which will always run after a begin, process, or end block. See the official documentation for reference.