On window cmd :"powershell -ExecutionPolicy Bypass -File ./test.ps1" work well
but OS.execute("powershell", ['-ExecutionPolicy Bypass','-File ./test.ps1'], false,array,true)
return:
[+ -ExecutionPolicy Bypass -File ./test.ps1
+ CategoryInfo : ObjectNotFound: (-ExecutionPolicy:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
]
Any advice plzz ?