fix run script still using old "spawn" API