Python has an isocalendar() method in the datetime module that you can use to do this. Use the following script in Run Python script to get it:
import datetime
year = str(datetime.date(%FormattedDate%).isocalendar()[0])
week = str(datetime.date(%FormattedDate%).isocalendar()[1])
print(year+week)
Note: %FormattedDate% must be formatted as yyyy, M, d (for example, today would end up as 2023, 9, 13) as that is the format that this method expects. Use Convert date time to text to format it like this.
Another note: The print command in Python will return the output with a newline at the end. Use Trim text to remove it afterwards.
Final note: The year can actually also be retrieved without using Python if you will. You could also use Convert date time to text to get the year. But there is no native way to get the week number. So, I would kind of suggest using a single script to get both as the easier alternative, when you need to use scripting anyway.
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.