Tie it over the shed for now. If it’s horizontal, it’ll encourage side growth rather than just endless extension of the same stem.
In late winter, prune it off, back to just above a bud. Use sharp secateurs and make a clean cut. Don’t do it until then.
edit to add: rambling roses tend to be prolific growers, so if you don’t want that, replace it with a climbing rose