Windows PowerShell execution

PowerShell command Get-ExecutionPolicy returns what policy is applied for running .ps1 scripts.
If it is set on Restricted, no local ps1 script can be run, therefore the Windows agent cannot run installation process.

By setting bellow command you can run local ps1 scripts for logged in user but remote ones have to be digitally signed or manually unblocked.
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

Get actual setup
Windows PowerShell monitoring

Enable execution
Windows PowerShell monitoring