I followed tutorial to do so :
in wsb:
<LogonCommand>
<Command>powershell -executionpolicy unrestricted -command "start powershell {-noexit -file C:\scripts\start.ps1}"</Command>
</LogonCommand>
in start.ps1 :
Set-ExecutionPolicy Unrestricted -Force
Set-ExecutionPolicy -scope CurrentUser Unrestricted
but when I try to run a script in sandbox, it still complains script is not executable.
I have the same problem with Unrestricted, but everything works fine with RemoteSigned. If your script is blocked because it was downloaded from the internet, you can use the cmdlet Unblock-File