Create Custom Activity Using Powershell

Does anyone know how I could possibly create Custom Activities using powershell? The example is only for C#. Thank you!

See if this this clue Helps ?

Per that link,

For custom activities and code, only .NET(VB, C#)

You can also use activities like, inject JavaScript, to execute other scripts. We have support for JavaScript, powershell at the moment.

I have been able to leverage powershell, but if I want to use a complex script, I have to actually save the script as a text file and bring it in that way. I would much rather be able to package it all up nicely in an activity.

I am not 100% sure but try to put this at this group as a new idea ?