Add error checking for the PackyCmd.Execute function