generating PBS script