Properly invoke task with multiple params