Answer:
try this script bro
(Get-ChildItem –Path C:\Folder).Encrypt()
Explanation:
simply microsoft just use encrypt() & decrypt() words in script to act doing the method encrypting & decrypting.
but i suggest you to use the windows gui features , its more easier. just right click on your folder target , go to properties then click advanced button , checklist encrypt box.