Unable to connect to the network specified by the profile {profile_name } because it is not available
I think i see where the problem is, you are passing the path of the xml file in the filename attribute (look at cmd screenshot).
Instead, you have to navigate to its location with 'cd' command.