I\'ve got a file containing some data in PowerShell Object Notation:
@{ X = \'x\'; Y = \'y\' }
I\'d like to load this into a variable from
Starting from PowerShell 5.0 you have
Import-PowerShellDataFile
Which imports values from a .psd1-file. So the only thing you have to do is rename your file to *.psd1
Official help is here.