1,544 questions
Assuming that cmd.exe will run, capture stdout and stderr to see if there is some error in there.
cmd.exe /c powershell.exe -executionpolicy bypass -file "%SCRIPTROOT%\Windows_Cust.ps1" 1 > C:\YourLogFolder\MyScript.log 2>&1
Also add a transcript into your .ps1 code.
https://www.tutorialspoint.com/how-to-use-a-transcript-in-powershell