PowerShell is the Scripting shell of the Windows world. A PowerShell script can be used in Jobs as easy as other shell scripts. An example:
<job titlh1. "Execute a PowerShell Script"
order="yes" stop_on_error="no"> <script language="shell"> <![CDATA[
echo SCHEDULER_DATA %SCHEDULER_DATA%
echo SCHEDULER_PARAM_SCRIPT_FILENAME = %SCHEDULER_PARAM_SCRIPT_FILENAME%
powershell get-ExecutionPolicy
powershell -nologo -NonInteractive -noprofile -file "%SCHEDULER_PARAM_SCRIPT_FILENAME%" "%SCHEDULER_PARAM_SCRIPT_FILENAME%"
exit %errorlevel%
]]> </script> <monitor name="configuration_monitor" ordering="0"> <script java_class="sos.scheduler.managed.configuration.ConfigurationOrderMonitor" language="java"/> </monitor> <run_time/>
</job>