When using --endpoint, the --username and --password flags stop working.
So while this works
wsman --endpoint "https://$USERNAME:$PASSWORD@$IP:16993" --noverifypeer --noverifyhost --optimize --encoding utf-8 enumerate "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_AssociatedPowerManagementService" -d 6
This does not work
wsman --endpoint "https://$IP:16993" -u "$USERNAME" -p "$PASSWORD" --auth=digest --noverifypeer --noverifyhost --optimize --encoding utf-8 enumerate "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_AssociatedPowerManagementService"