Foxpro and powershell


I am trying to build a foxpro application using a powershell script that works locally. When I run the following script in the script console on the target role, it shows success; however, a build was not created.

$username = ‘domain\user’
$pass = ‘password’
$password=$pass|ConvertTo-SecureString -AsPlainText -Force
$Cred = New-Object System.Management.Automation.PsCredential($username,$password)
start-job -FilePath “C:\Users\MW5\Desktop\1-linerBuild.ps1” -Credential $Cred

Within the 1-linerBuild.ps1 I have the following:

Start-Process -FilePath “C:\Program Files (x86)\Microsoft Visual FoxPro 9\vfp9.exe” -ArgumentList “-t -cC:\Users\MW5\Desktop\CopyofNewParts-DevOps\build.fpw”