Other Configuration Manager-related features and issues
Ok but is there some solution of leaving this script in SCCM TS
No, not today. The best you can do today is save the key to your on-prem AD or hard-code a recovery key (that will get rotated later).
With this in mind, does this cause you pain or become a blocker? If so, why (trying to phrase this is business impact terms and not technical ones)?