Encrypted script will work wherever Powershell is available!
Can I encrypt Powershell function files/scripts? Yes, you can.
Is there a size limit on the type of Powershell scripts that can be encrypted? No, there is not.