Shape resonances of oriented molecules