Hi @jansi rani krishnan ,
here we go:
https://github.com/abaumgarten42/SCSM_Useful_PSscripts/blob/main/Create-ManualActivity.ps1
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten