Allow Powershell script in Agent task
Currently only vbs is supported, when creating Agent based task. For now, PS is mostly installed on all recent OS please implement support for adding Powershell scripts here.
You can mark it somehow- to distinguish VBS/PS based tasks, so users are not running ( or know and accepts) it on systems which do not support PS.
You can use this management pack by Squaredup for that purpose: https://squaredup.com/content/management-packs/free-powershell-management-pack/
There is a management pack that adds this functionality from Squared Up, you can find it in the Community Management Pack catalog at https://squaredup.com/landing-pages/the-scom-community-mp-catalog