test(bkgpslog):Construct command string as var before executing