A community where customers and the community can provide feedback to make a better product for everyone! For more details on how we prioritize request, please see:
Maybe the issue could be solved by simply implementing the solution mentioned here:
Using the -file parameter to run a script, such as powershell.exe -file ./yourscript.ps1, also puts the script in interactive mode and under WDAC restriction. However, if you omit the -file parameter and run a script like this: powershell.exe ./yourscript.ps1, the script runs in non-interactive mode and full-language mode.
Maybe the issue could be solved by simply implementing the solution mentioned here:
https://patchmypc.com/wdac-intune
Currently, the Cloud solution run the pre-install scripts like this: powershell.exe -file ./yourscript.ps1
This would be very useful for compliance with certain cybersecurity standards.