SEO advice is off-topic on Stack Overflow. But your question can still be answered here, because …
In HTML5, the nofollow link type may only be used with a and area elements.
So don’t use it on link elements.
For script elements, there is no rel attribute in the first place.
(Note: Your script element has the type value text/css. It’s likely that this is not what you want. If it’s JavaScript, use text/javascript (or omit the type attribute).)