Call powershell script from psadt

I need help on below script, whenever I am calling it directly, it runs fine, but when calling from execute-process i’m getting above error, please help

You should consider integrating CheckTPMstatus.ps1 in the the PSADT script proper.