NO, I don't think it is possible to create a custom activity with PowerShell in UiPath but there are PowerShell related activities , I am not very sure of your requirements but if you have a lot of scripts lying or you are really familiar with PS then you can use invoke PowerShell activity to execute PowerShell scripts.