Will I become dependent on restoril (temazepam) 5mg if I only take about 2-3 times a week? Some nights I don't need it.

Different problem. Rather than becoming dependent - you'd notice that it stopped working. It's intended for very short term use (or very intermittent). You'd find you needed more than one pill and that would be the danger. Be very careful. Try very hard to find better ways to deal w/ getting to sleep. If you find it's not working, DON'T increase the dose! Used as you plan, you may be fine.