New in PS. Simple questions

Hello! I am new in PS with lots of dumb questions. For example:

  1. How to use functions from generic PS units (like ‘now’ from ‘???_dateutils’) in scripts?
  2. How to read and write application variables in scripts?
  3. Is there boolean type in PS (like ‘btBoolean’ or something)?
  4. How to use application functions with such argument types as pBoolean, pLongWord, pDateTime in scripts?