Hello - I've been having a similar problem that I've been working on with support. We were on 11.1.x and I had problems with two powershell scripts on domain controllers, that worked everywhere else fine and worked if I ran them on the servers in the context of our Lansweeper scan account. We upgraded to the last two 11.4 releases and the scripts stopped working on all of the servers and workstations. It would say they ran, but did not.
The issue was the last command in the script was a copy-item command to take the results from the computer and put them back into the import folder in the path of the Lansweeper application. Based on other comments in this thread, I tested the same thing and had it copy to c:\temp and it worked, but only if I took the command out of the script and made it another step in my deployment package.
Today, I made a fresh folder on the Lansweeper server and shared that, then keeping the copy command out of the script and a step in the deployment package I'm able to achieve my goal again (and the domain controllers are working). I hope this is helpful to others working on the same issues.