When invoking a powershell task over the local transport on windows the powershell args should be consistent with those used with the WinRM transport. https://github.com/puppetlabs/bolt/blob/2a7630d53ae8fa4693e652161d22ee31d063fe71/lib/bolt/transport/powershell.rb#L7
Docs:
https://puppet.com/docs/bolt/latest/bolt_resolved_issues.html#powershell-tasks-on-localhost-didn-t-use-correct-default-ps-args-1-23-0