A former immigration detainee shot by police in Melbourne at the weekend will seek to be released back into the community, a court has been told.