Powershel script execution - problem with function included in ps1

Powershel script execution - problem with function included in ps1

Hi
I have to run custom script from DC
I create package but in field "installation command..." I need tu put this

powershell.exe -ExecutionPolicy RemoteSigned -File Get-WindowsAutoPilotIHWID.ps1 -OutputFile \\sharedfolder\hwid\%computername%.csv

Script execured with success but output location is empty,Also can't find csv file on PC where package was execuded.
-outputfle it is parameter from ps1 file

Can you help me

                New to ADSelfService Plus?