Load and submit user profile form I want to programmatically load the user profile form for a specific user and submit it ( in order to trigger hook_form_submit() in another module ).  So far I have :

module_load_include('inc', 'user', 'user.pages');   
$account = user_load($uid);
$form = drupal_get_form('user_profile_form', $account);


but how do I submit the form ?

Thanks
If oyu want to get and submit a form programatically you must use the function drupal_form_submit


  Retrieves, populates, and processes a form.
  
  This function allows you to supply values for form elements and submit
  a form for processing. Compare to drupal_get_form(), which also builds
  and processes a form, but does not allow you to supply values.


Check this function's documentation page and its comments for some examples.