Do you have some simple working example on how to run a powershell script file in a task inside YAML file. just like this one? Seems that mine is not able to pick up and execute the script since logs are not being printed.
- task: PowerShell@2
displayName: task 1
inputs:
targetType: 'filePath'
filePath: scripts\sample_pwsh.ps1
arguments: -Name someName