I'm trying to use Java to create and send messages for remote powershell commands, running over ws-man. The specific implementation is for Office365, but the issue I'm having is that I can't figure out how to create valid powershell commands by hand because the spec for the message format doesn't seem to match what actually needs to be sent:
http://msdn.microsoft.com/en-us/library/dd303832(v=PROT.10).aspx
Has anybody else run into this issue? I need to make this work without .Net, but I'm not sure if it's actually possible at this point.